* @param string first three characters of database system version
*/
function bodyLoad(version) {
+ if (history.state) { // copied from editor/static/editing.js
+ onpopstate(history);
+ }
var jushRoot = '../externals/jush/';
var script = document.createElement('script');
script.src = jushRoot + 'jush.js';
}
/** Revive page from history
-* @param PopStateEvent
+* @param PopStateEvent|history
*/
window.onpopstate = function (event) {
ajaxSend(location.href, event.state, 1); // 1 - disable pushState