Skip to content

Commit

Permalink
added trigger change
Browse files Browse the repository at this point in the history
  • Loading branch information
jrief committed Jul 12, 2016
1 parent 2e2b8d3 commit 2ee48ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions filer/static/filer/js/addons/dropzone.init.js
Expand Up @@ -79,6 +79,7 @@ django.jQuery(function ($) {
});
clearButton.on('click', function () {
dropzone.removeClass(objectAttachedClass);
inputId.trigger('change');
});
},
maxfilesexceeded: function () {
Expand All @@ -97,6 +98,7 @@ django.jQuery(function ($) {
if (file && file.status === 'success' && response) {
if (response.file_id) {
inputId.val(response.file_id);
inputId.trigger('change');
}
if (response.thumbnail_180) {
if (isImage) {
Expand Down Expand Up @@ -130,6 +132,7 @@ django.jQuery(function ($) {
inputId.val('');
lookupButton.removeClass(hiddenClass);
message.removeClass(hiddenClass);
inputId.trigger('change');
}
});
};
Expand Down

0 comments on commit 2ee48ad

Please sign in to comment.