]> git.mxchange.org Git - friendica.git/commitdiff
Remove the AjaxUpload element when jot modal is closed
authorrabuzarus <>
Sat, 25 Mar 2017 20:10:57 +0000 (21:10 +0100)
committerrabuzarus <>
Sat, 25 Mar 2017 20:10:57 +0000 (21:10 +0100)
view/theme/frio/js/modal.js

index f657ff5f2314afd450d68718d3f82a9dd539d8b3..b77f621617c3adfff0dcc6386dc6c664ee11a90b 100644 (file)
@@ -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