From 8bbf43b9dd8492c96dabd553f385d984fdb77845 Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Sat, 25 Mar 2017 21:10:57 +0100 Subject: [PATCH] Remove the AjaxUpload element when jot modal is closed --- view/theme/frio/js/modal.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/view/theme/frio/js/modal.js b/view/theme/frio/js/modal.js index f657ff5f23..b77f621617 100644 --- a/view/theme/frio/js/modal.js +++ b/view/theme/frio/js/modal.js @@ -8,9 +8,11 @@ $(document).ready(function(){ $(this).removeData('bs.modal'); $("#modal-title").empty(); $('#modal-body').empty(); - // remove the file browser from jot (else we would have problems - // with ajaxupload + // Remove the file browser from jot (else we would have problems + // with AjaxUpload $(".fbrowser").remove(); + // Remove the AjaxUpload element + $("[name=userfile]").parent().remove(); }); // Clear bs modal on close