Permalink
Browse files

Confirming deletion

Using @dadah strategy for compatibility:
dadah@aa463d5
001fc3ec18ec0a0009b1cae2
  • Loading branch information...
1 parent d99117f commit c3a0989d0261a5e6eeef0023c61cf2832d986078 @rodrigues committed Feb 26, 2013
Showing with 7 additions and 4 deletions.
  1. +7 −4 vendor/assets/javascripts/jquery-fileupload/jquery.fileupload-ui.js
@@ -644,10 +644,13 @@
this._on(fileUploadButtonBar.find('.delete'), {
click: function (e) {
e.preventDefault();
- filesList.find('.delete input:checked')
- .siblings('button').click();
- fileUploadButtonBar.find('.toggle')
- .prop('checked', false);
+
+ if(confirm('Are you sure?')) {
+ filesList.find('.delete input:checked')
+ .siblings('button').click();
+ fileUploadButtonBar.find('.toggle')
+ .prop('checked', false);
+ }
}
});
this._on(fileUploadButtonBar.find('.toggle'), {

0 comments on commit c3a0989

Please sign in to comment.