From d0090297d8a50778c95631457ac0a4fbe14df4c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Bugy=C3=ADk?= Date: Fri, 5 Dec 2014 00:16:03 +0100 Subject: [PATCH] Client side: Wrapped changing location hash [Closed #170] --- client-side/grido.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client-side/grido.js b/client-side/grido.js index 0a9dc1b9..6c97cc47 100644 --- a/client-side/grido.js +++ b/client-side/grido.js @@ -427,10 +427,15 @@ : this.coolUri($.param(params)); $.data(document, this.grido.name + '-state', hash); - location.hash = hash; + this.changeLocationHash(hash); } }, + changeLocationHash: function(hash) + { + location.hash = hash; + }, + handleHashChangeEvent: function() { var state = $.data(document, this.grido.name + '-state') || '',