summaryrefslogtreecommitdiff
path: root/itjs/state.html
diff options
context:
space:
mode:
authorThomas BrĂ¼derli2007-07-24 09:54:33 +0000
committerThomas BrĂ¼derli2007-07-24 09:54:33 +0000
commitc3cba034c8009b65c25dd4ef5f54b18d9c8ee7d4 (patch)
tree270dbe9f89efc50f1fc551c78b04796b58bca2a7 /itjs/state.html
parent5abbfdee24e0e059f6919f136b8fb07e4864e5e5 (diff)
downloaditools-c3cba034c8009b65c25dd4ef5f54b18d9c8ee7d4.tar.gz
itools-c3cba034c8009b65c25dd4ef5f54b18d9c8ee7d4.tar.bz2
itools-c3cba034c8009b65c25dd4ef5f54b18d9c8ee7d4.zip
Improved it_state with Safari support
Diffstat (limited to 'itjs/state.html')
-rw-r--r--itjs/state.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/itjs/state.html b/itjs/state.html
index 3029932..36f36c0 100644
--- a/itjs/state.html
+++ b/itjs/state.html
@@ -16,16 +16,16 @@ function state_onload()
else
window.setTimeout(state_onload, 90);
}
- window.onbeforeunload = state_onbeforeunload;
+ window[(document.all?'onbeforeunload':'onunload')] = state_onbeforeunload;
}
function state_onbeforeunload()
{
- if (parent.it_state)
+ if (parent.it_state && !parent.it_state.it_state_saved)
parent.it_state.store_state();
}
</script>
</head>
-<body onload="state_onload()"><form action=""><input type="hidden" id="state" value=""></form></body>
+<body onload="state_onload()"><form action="/itjs/state.html" method="get"><input type="hidden" id="state" name="s" value=""></form></body>
</html>
EOF
?>