Do not set hash if we're not updating frameset.

This commit is contained in:
Michal Čihař
2010-01-25 12:29:17 +00:00
parent 338b134af3
commit 812e9f16a7

View File

@@ -24,6 +24,10 @@ function setURLHash(hash) {
if (window.parent != window && window.parent.setURLHash) {
window.parent.setURLHash(hash);
} else {
/* Do not set if we're not updating frameset */
if (window.location.pathname.substring(-9, 9) != "index.php") {
return;
}
if (hash_init_done) {
window.location.hash = "PMAURL:" + hash;
} else {