diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js index 5401d24ff2..86a9c7062a 100644 --- a/public/src/ajaxify.js +++ b/public/src/ajaxify.js @@ -23,7 +23,6 @@ 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, true); } @@ -34,6 +33,8 @@ var ajaxify = {}; ajaxify.currentPage = null; ajaxify.go = function (url, callback, quiet) { + // "quiet": If set to true, will not call pushState + // start: the following should be set like so: ajaxify.onchange(function(){}); where the code actually belongs $(window).off('scroll'); app.enterRoom('global'); diff --git a/src/webserver.js b/src/webserver.js index ebffd122b2..0a81db656f 100644 --- a/src/webserver.js +++ b/src/webserver.js @@ -400,7 +400,7 @@ if(nconf.get('ssl')) { }; app.create_route = function (url, tpl) { // to remove - return ''; + return ''; }; app.namespace(nconf.get('relative_path'), function () { @@ -648,7 +648,7 @@ if(nconf.get('ssl')) { res.send( data.header + '\n\t' + - '\n\t' + + '\n\t' + templates.footer ); }); @@ -763,7 +763,7 @@ if(nconf.get('ssl')) { res.send( data.header + '\n\t' + - '\n\t' + + '\n\t' + templates.footer ); }); @@ -774,7 +774,7 @@ if(nconf.get('ssl')) { req: req, res: res }, function (err, header) { - res.send(header + '' + templates.footer); + res.send(header + '' + templates.footer); }); }); @@ -847,7 +847,7 @@ if(nconf.get('ssl')) { }, function (err, header) { res.send( header + - '\n\t' + + '\n\t' + templates.footer ); });