Skip to content

Commit

Permalink
Add missing fileinput.tmpl.js required for BootstrapFileInputField (#836
Browse files Browse the repository at this point in the history
)

(cherry picked from commit e5d3a69)
  • Loading branch information
vrozkovec authored and martin-g committed Jan 24, 2020
1 parent 4c93498 commit e1a637d
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
;(function (undefined) {
'use strict';

// bind ajax submit behavior on upload button click
jQuery('.file-input:has(#${markupId}) .fileinput-upload-button').click(function(e){
e.preventDefault();
jQuery('#${markupId}').triggerHandler('${eventName}');
});
})();

0 comments on commit e1a637d

Please sign in to comment.