don't include # in document.location.hash value
authorTero Marttila <terom@fixme.fi>
Sat, 09 Jan 2010 14:43:51 +0200
changeset 48 7577a3b68ccc
parent 47 201257cbd887
child 49 9dedd0e30b6b
don't include # in document.location.hash value
static/tiles2.js
--- a/static/tiles2.js	Sat Jan 09 13:48:00 2010 +0200
+++ b/static/tiles2.js	Sat Jan 09 14:43:51 2010 +0200
@@ -556,7 +556,7 @@
      */ 
     update_scroll_ui: function () {
         // update the link-to-this-page thing
-        document.location.hash = "#" + (this.scroll_x + this.center_offset_x) + ":" + (this.scroll_y + this.center_offset_y) + ":" + this.zoom_layer.level;
+        document.location.hash = (this.scroll_x + this.center_offset_x) + ":" + (this.scroll_y + this.center_offset_y) + ":" + this.zoom_layer.level;
         
         // update link-to-image
         this.update_image_link();