mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #1158 from halkyon/deleteaction
Trigger delete confirmation popup when deleting a GridFieldDetailForm re...
This commit is contained in:
commit
3931945e62
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user