[vhffs-dev] [1559] Fixed back button bug on home |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 1559
Author: beuss
Date: 2010-03-14 19:30:13 +0100 (Sun, 14 Mar 2010)
Log Message:
-----------
Fixed back button bug on home
Modified Paths:
--------------
branches/vhffs-design/vhffs-panel/js/anonymous.js
branches/vhffs-design/vhffs-panel/js/public.js
branches/vhffs-design/vhffs-panel/js/vhffs/Common.js
Modified: branches/vhffs-design/vhffs-panel/js/anonymous.js
===================================================================
--- branches/vhffs-design/vhffs-panel/js/anonymous.js 2010-03-14 18:29:22 UTC (rev 1558)
+++ branches/vhffs-design/vhffs-panel/js/anonymous.js 2010-03-14 18:30:13 UTC (rev 1559)
@@ -40,7 +40,9 @@
dojo.addOnLoad(function() {
vhffs.Common.ajaxizeLinks(dojo.byId('content-panel-anonymous'));
-});
+ var initState = new vhffs.Common.pageState(document.location.pathname, dojo.byId('content-panel-anonymous'));
+ dojo.back.setInitialState(initState);
+ });
var Anonymous = {};
Modified: branches/vhffs-design/vhffs-panel/js/public.js
===================================================================
--- branches/vhffs-design/vhffs-panel/js/public.js 2010-03-14 18:29:22 UTC (rev 1558)
+++ branches/vhffs-design/vhffs-panel/js/public.js 2010-03-14 18:30:13 UTC (rev 1559)
@@ -41,6 +41,8 @@
vhffs.Common.handleHash();
new vhffs.Menu(dojo.byId('left-menu'));
vhffs.Common.ajaxizeLinks(dojo.byId('public-content'));
+ var initState = new vhffs.Common.pageState(document.location.pathname, dojo.byId('public-content'));
+ dojo.back.setInitialState(initState);
});
var Public = {};
Modified: branches/vhffs-design/vhffs-panel/js/vhffs/Common.js
===================================================================
--- branches/vhffs-design/vhffs-panel/js/vhffs/Common.js 2010-03-14 18:29:22 UTC (rev 1558)
+++ branches/vhffs-design/vhffs-panel/js/vhffs/Common.js 2010-03-14 18:30:13 UTC (rev 1559)
@@ -187,12 +187,6 @@
}
});
-dojo.addOnLoad(function() {
- var initState = new vhffs.Common.pageState(document.location.pathname, dojo.byId('public-content'));
- dojo.back.setInitialState(initState);
-});
-
-
/* Redefines core dojo XHR function to show
* loading feedback.
*/