X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=highslide%2Fcustom.js;h=7bc804b17528eb9afb226e4660e948ded97c6f12;hb=a8bcc1dfefa2a6e139371f91ca93591543f3f058;hp=ae7699312f3bf7b613d1412ca6e135cc269853ed;hpb=d94da8d601fa080700f1d610089ec5f602d5ee88;p=gallery.git diff --git a/highslide/custom.js b/highslide/custom.js index ae76993..7bc804b 100644 --- a/highslide/custom.js +++ b/highslide/custom.js @@ -55,7 +55,7 @@ hs.extend (hs.Expander.prototype, { }, onBeforeClose: function(sender) { - window.location.hash = ''; + window.location.hash = hashDelimiter; } }); @@ -63,7 +63,6 @@ function showDefaultImage() { var hashParts = window.location.hash.split(hashDelimiter); var myThumb = document.getElementById(hashParts[1]) if (hashParts[1] && myThumb) myThumb.click(); - else window.location.hash = ''; } // If the new hash is not equal to the hash we store internally, // then it must be the user hitting the "back/forward" button @@ -71,7 +70,7 @@ function checkHashChange() { var hashParts = window.location.hash.split(hashDelimiter); if (hashParts[1] != hashTag) { hs.close(); - window.location.hash = ''; + window.location.hash = hashDelimiter; } }