Get template mapping after removing relative path

This commit is contained in:
Charles
2014-06-16 10:25:48 +07:00
parent be06d386e5
commit 23a88492a6

View File

@@ -513,10 +513,10 @@ var socket,
var url = window.location.pathname.slice(1).replace(/\/$/, ""), var url = window.location.pathname.slice(1).replace(/\/$/, ""),
search = window.location.search, search = window.location.search,
hash = window.location.hash, hash = window.location.hash,
tpl_url = ajaxify.getTemplateMapping(url),
$window = $(window); $window = $(window);
url = ajaxify.removeRelativePath(url); url = ajaxify.removeRelativePath(url);
tpl_url = ajaxify.getTemplateMapping(url);
ajaxify.widgets.render(tpl_url, url); ajaxify.widgets.render(tpl_url, url);