MINOR Fixed unload logic in MainMenu javascript

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92665 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-11-21 02:38:50 +00:00
parent 59999e197e
commit df313826e0

View File

@ -298,7 +298,7 @@ Behaviour.register({
'#MainMenu li' : { '#MainMenu li' : {
onclick : function(event) { onclick : function(event) {
return LeftAndMain_window_unload(); // Confirm if there are unsaved changes LeftAndMain_window_unload(); // Confirm if there are unsaved changes
window.location.href = this.getElementsByTagName('a')[0].href; window.location.href = this.getElementsByTagName('a')[0].href;
Event.stop(event); Event.stop(event);
} }