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:
Ingo Schommer 2007-09-16 15:05:25 +00:00
parent 4642b20315
commit c0a7eba5ab

View File

@ -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");