mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 06:55:46 +01:00
removing defunct "template" argument in ajaxify.go
This commit is contained in:
@@ -25,7 +25,7 @@ var ajaxify = {};
|
||||
window.onpopstate = function (event) {
|
||||
// "quiet": If set to true, will not call pushState
|
||||
if (event !== null && event.state && event.state.url !== undefined) {
|
||||
ajaxify.go(event.state.url, null, null, true);
|
||||
ajaxify.go(event.state.url, null, true);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -33,7 +33,7 @@ var ajaxify = {};
|
||||
|
||||
ajaxify.currentPage = null;
|
||||
|
||||
ajaxify.go = function (url, callback, template, quiet) {
|
||||
ajaxify.go = function (url, callback, quiet) {
|
||||
// start: the following should be set like so: ajaxify.onchange(function(){}); where the code actually belongs
|
||||
$(window).off('scroll');
|
||||
app.enterRoom('global');
|
||||
@@ -125,7 +125,7 @@ var ajaxify = {};
|
||||
|
||||
app.refreshTitle(url);
|
||||
|
||||
}, url, template);
|
||||
}, url);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user