Merge pull request #913 from kinglozzer/assetadmin-delete-confirmation

FIX: Prevent AssetAdmin duplicate confirmation for file deletion (fixes silverstripe/silverstripe-framework#2639)
This commit is contained in:
Sean Harvey 2013-12-18 19:49:37 -08:00
commit c4cd203ab7

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') {