Merge pull request #1158 from halkyon/deleteaction

Trigger delete confirmation popup when deleting a GridFieldDetailForm re...
This commit is contained in:
Ingo Schommer 2013-02-05 00:10:21 -08:00
commit 3931945e62

View File

@ -135,7 +135,7 @@
}
});
$('.ss-gridfield .action.gridfield-button-delete').entwine({
$('.ss-gridfield .action.gridfield-button-delete, .cms-content-actions .ss-ui-action-destructive .ui-button-text').entwine({
onclick: function(e){
if(!confirm(ss.i18n._t('TABLEFIELD.DELETECONFIRMMESSAGE'))) {
e.preventDefault();