From 0a0ea33f581d2295ee6d73611b22cbac47f7b6e0 Mon Sep 17 00:00:00 2001 From: Loz Calver Date: Tue, 17 Dec 2013 09:54:14 +0000 Subject: [PATCH] FIX: Prevent AssetAdmin duplicate confirmation for file deletion (fixes silverstripe/silverstripe-framework#2639) --- javascript/AssetAdmin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/AssetAdmin.js b/javascript/AssetAdmin.js index eba88eaa..16bb8deb 100644 --- a/javascript/AssetAdmin.js +++ b/javascript/AssetAdmin.js @@ -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') {