vendor/assets/javascripts/base/_filepicker.js in active_frontend-15.0.21 vs vendor/assets/javascripts/base/_filepicker.js in active_frontend-15.0.22
- old
+ new
@@ -66,11 +66,16 @@
this.$element.change(function () {
var files = _self.pushNameFiles();
if (files.length === 0) {
+ $.event.trigger('filepickerOnFilesDeSelectedCallback');
_self.options.onFilesDeselectedCallback();
} else {
+ $.event.trigger({
+ type: 'filepickerOnFilesSelectedCallback',
+ count: files.length
+ });
_self.options.onFilesSelectedCallback(files.length);
}
if (_self.options.showInput === false && _self.options.showBadge) {
if (_self.$elementFilepicker.find('.badge').length === 0) {