elofgren: BUGFIX: Newsletters section: Make unsaved changes confirm() dialogue show when a new selection is made in the left tree by removing the check for the existance of the save() function which was removed in r36869. The save() function used to be called by the old modal 'Unsaved Changes' dialogue when the 'Save changes' button was pressed. The new confirm() dialogue has no 'Save changes' button so the save() function is no longer needed.

(merged from branches/gsoc)


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@41850 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2007-09-15 00:51:12 +00:00
parent e2475e8dcd
commit 768862a9e4

View File

@ -183,13 +183,8 @@ deletedraft = {
SiteTreeNode.prototype.onselect = function() { SiteTreeNode.prototype.onselect = function() {
$('sitetree').changeCurrentTo(this); $('sitetree').changeCurrentTo(this);
if($('sitetree').notify('SelectionChanged', this)) { if($('sitetree').notify('SelectionChanged', this)) {
if(typeof save != 'undefined'){
autoSave(true, this.getPageFromServer.bind(this)); autoSave(true, this.getPageFromServer.bind(this));
} }
else {
this.getPageFromServer();
}
}
return false; return false;
}; };