mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
elofgren: Add 'TODO: Remove 'new-' code http://open.silverstripe.com/ticket/875' comment.
(merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@42084 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
4642b20315
commit
c0a7eba5ab
@ -69,6 +69,7 @@ addpage.prototype = {
|
||||
form_submit : function() {
|
||||
var st = $('sitetree');
|
||||
var parentID = st.getIdxOf(st.firstSelected());
|
||||
// TODO: Remove 'new-' code http://open.silverstripe.com/ticket/875
|
||||
if(parentID && parentID.substr(0,3) == 'new') {
|
||||
alert("You have to save a page before adding children underneath it");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user