mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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:
parent
59999e197e
commit
df313826e0
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user