diff options
Diffstat (limited to 'theme/javascript/core')
-rwxr-xr-x | theme/javascript/core/navigation.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/theme/javascript/core/navigation.js b/theme/javascript/core/navigation.js index baf53e7..1796fc1 100755 --- a/theme/javascript/core/navigation.js +++ b/theme/javascript/core/navigation.js @@ -25,6 +25,8 @@ define([ return $.get(url) .done(function (html) { + if (push) updateHistory(url, null); + html = html.replace( /<(\/?)(html|head|body)([^>]*)>/ig, function(a,b,c,d){ return '<' + b + 'div' + ( b ? '' : ' data-element="' + c + '"' ) + d + '>'; }); @@ -51,8 +53,6 @@ define([ // Update state state.update($("html")); - - if (push) updateHistory(url, null); preparePage(); }) .fail(function () { |