From 8efd49febe9184c141232bb7948f57ad758c0ceb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Mon, 3 Aug 2020 09:07:17 -0400 Subject: [PATCH] Fix for #1052. --- views/episodes.html | 6 ++++-- views/movie.html | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/views/episodes.html b/views/episodes.html index 86be30537..2360318c4 100644 --- a/views/episodes.html +++ b/views/episodes.html @@ -206,7 +206,7 @@ @@ -826,7 +826,9 @@ }); $('#uploadModal').on('hidden.bs.modal', function () { - $(this).find('form')[0].reset(); + $(this).find('form').trigger('reset'); + $('.custom-file-label').text('Choose file') + $('#upload_save_button_span').html(''); }); events.on('event', function (event) { diff --git a/views/movie.html b/views/movie.html index cd68096da..ce2ee5951 100644 --- a/views/movie.html +++ b/views/movie.html @@ -214,7 +214,7 @@ @@ -686,7 +686,9 @@ }); $('#uploadModal').on('hidden.bs.modal', function () { - $(this).find('form')[0].reset(); + $(this).find('form').trigger('reset'); + $('.custom-file-label').text('Choose file') + $('#upload_save_button_span').html(''); }); events.on('event', function(event) {