We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d99117f commit c3a0989Copy full SHA for c3a0989
vendor/assets/javascripts/jquery-fileupload/jquery.fileupload-ui.js
@@ -644,10 +644,13 @@
644
this._on(fileUploadButtonBar.find('.delete'), {
645
click: function (e) {
646
e.preventDefault();
647
- filesList.find('.delete input:checked')
648
- .siblings('button').click();
649
- fileUploadButtonBar.find('.toggle')
650
- .prop('checked', false);
+
+ if(confirm('Are you sure?')) {
+ filesList.find('.delete input:checked')
+ .siblings('button').click();
651
+ fileUploadButtonBar.find('.toggle')
652
+ .prop('checked', false);
653
+ }
654
}
655
});
656
this._on(fileUploadButtonBar.find('.toggle'), {
0 commit comments