mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-15 10:16:12 +01:00
added popstate functionality
This commit is contained in:
@@ -160,14 +160,12 @@ var templates = {};
|
||||
|
||||
}());
|
||||
|
||||
function load_template(callback, custom_tpl) {
|
||||
function load_template(callback, url, template) {
|
||||
var location = document.location || window.location,
|
||||
rootUrl = location.protocol + '//' + (location.hostname || location.host) + (location.port ? ':' + location.port : '');
|
||||
|
||||
var url = location.href.replace(rootUrl +'/', '');
|
||||
url = (url === '' || url === '/') ? 'home' : url;
|
||||
|
||||
|
||||
jQuery.get(API_URL + url, function(data) {
|
||||
|
||||
var tpl = templates.get_custom_map(url);
|
||||
|
||||
Reference in New Issue
Block a user