FIX: Prevent AssetAdmin duplicate confirmation for file deletion (fixes silverstripe/silverstripe-framework#2639)

This commit is contained in:
Loz Calver 2013-12-17 09:54:14 +00:00
parent 288303c43c
commit 0a0ea33f58

View File

@ -48,7 +48,7 @@
}
});
$('.AssetAdmin.cms-edit-form .action.gridfield-button-delete').entwine({
$('.AssetAdmin.cms-edit-form .ss-gridfield .col-buttons .action.gridfield-button-delete, .AssetAdmin.cms-edit-form .Actions button.action.action-delete').entwine({
onclick: function(e) {
var msg;
if(this.closest('.ss-gridfield-item').data('class') == 'Folder') {