mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-23 16:19:57 +02:00
Merge pull request #1699 from char101/patch-7
Fix client side template mapping
This commit is contained in:
@@ -510,14 +510,12 @@ var socket,
|
||||
|
||||
app.load = function() {
|
||||
$('document').ready(function () {
|
||||
var url = window.location.pathname.slice(1).replace(/\/$/, ""),
|
||||
var url = ajaxify.removeRelativePath(window.location.pathname.slice(1).replace(/\/$/, "")),
|
||||
tpl_url = ajaxify.getTemplateMapping(url),
|
||||
search = window.location.search,
|
||||
hash = window.location.hash,
|
||||
tpl_url = ajaxify.getTemplateMapping(url),
|
||||
$window = $(window);
|
||||
|
||||
url = ajaxify.removeRelativePath(url);
|
||||
|
||||
ajaxify.widgets.render(tpl_url, url);
|
||||
|
||||
$window.trigger('action:ajaxify.start', {
|
||||
|
||||
Reference in New Issue
Block a user