mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
elofgren: Added delete confirmation for items in Newsletter 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@42040 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
706580c443
commit
6cb2df64dd
@ -131,6 +131,7 @@ deletedraft = {
|
||||
}
|
||||
|
||||
if(csvIDs) {
|
||||
if(confirm("Do you really want to these Newsletter items?")) {
|
||||
$('deletedrafts_options').elements.csvIDs.value = csvIDs;
|
||||
|
||||
Ajax.SubmitForm('deletedrafts_options', null, {
|
||||
@ -149,7 +150,7 @@ deletedraft = {
|
||||
});
|
||||
|
||||
$('deletedrafts').getElementsByTagName('button')[0].onclick();
|
||||
|
||||
}
|
||||
} else {
|
||||
alert("Please select at least 1 page.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user