mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
elofgren: Added delete confirmation for items in Security left tree. As part of fix for gsoc trac ticekt: #51 Warning is needed before items are deleted from security & newsletter tree
(merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@42043 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
08974ae348
commit
0438c5006d
@ -102,6 +102,7 @@ deletegroup = {
|
||||
if(deletegroup.selectedNodes[idx]) csvIDs += (csvIDs ? "," : "") + idx;
|
||||
}
|
||||
if(csvIDs) {
|
||||
if(confirm("Do you really want to these groups?")) {
|
||||
$('deletegroup_options').elements.csvIDs.value = csvIDs;
|
||||
|
||||
Ajax.SubmitForm('deletegroup_options', null, {
|
||||
@ -120,7 +121,7 @@ deletegroup = {
|
||||
});
|
||||
|
||||
$('deletegroup').getElementsByTagName('button')[0].onclick();
|
||||
|
||||
}
|
||||
} else {
|
||||
alert("Please select at least 1 security group.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user