# HG changeset patch # User Edho Arief # Date 1369451727 -32400 # Node ID e3468efc9ec90b59fb886cf5e9671e04b8b3c69d # Parent e021f4e7626956634c2f933e23c70b27068e0308 Do check if we're on the right place diff -r e021f4e76269 -r e3468efc9ec9 app/assets/javascripts/zp.hash_magic.js --- a/app/assets/javascripts/zp.hash_magic.js Wed May 15 14:33:35 2013 +0900 +++ b/app/assets/javascripts/zp.hash_magic.js Sat May 25 12:15:27 2013 +0900 @@ -29,6 +29,7 @@ history.replaceState(null, "", hash) }, init: function() { + if (!$("#paste").length) return this.load_hash() if (history.replaceState) { this.set_hash()