Skip to content

Commit

Permalink
Client side: Wrapped changing location hash [Closed #170]
Browse files Browse the repository at this point in the history
  • Loading branch information
o5 committed Dec 4, 2014
1 parent ad0f418 commit d009029
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion client-side/grido.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') || '',
Expand Down

0 comments on commit d009029

Please sign in to comment.