Remove the AjaxUpload element when jot modal is closed
This commit is contained in:
parent
c8a427804e
commit
8bbf43b9dd
|
@ -8,9 +8,11 @@ $(document).ready(function(){
|
||||||
$(this).removeData('bs.modal');
|
$(this).removeData('bs.modal');
|
||||||
$("#modal-title").empty();
|
$("#modal-title").empty();
|
||||||
$('#modal-body').empty();
|
$('#modal-body').empty();
|
||||||
// remove the file browser from jot (else we would have problems
|
// Remove the file browser from jot (else we would have problems
|
||||||
// with ajaxupload
|
// with AjaxUpload
|
||||||
$(".fbrowser").remove();
|
$(".fbrowser").remove();
|
||||||
|
// Remove the AjaxUpload element
|
||||||
|
$("[name=userfile]").parent().remove();
|
||||||
});
|
});
|
||||||
|
|
||||||
// Clear bs modal on close
|
// Clear bs modal on close
|
||||||
|
|
Loading…
Reference in a new issue