fix of unwanted watchHashChange() initialization

This commit is contained in:
Simon Grim 2015-12-03 03:37:40 +05:00
parent 6a6b3aba5d
commit 9279b93edf
2 changed files with 3 additions and 5 deletions

View File

@ -1853,6 +1853,7 @@ $(document).ready(function()
var page = path.split("/").pop(); var page = path.split("/").pop();
if (page.indexOf("following.html") === 0) { if (page.indexOf("following.html") === 0) {
initInterfaceFollowing(); initInterfaceFollowing();
initHashWatching();
} else if (page.indexOf("login.html") === 0) { } else if (page.indexOf("login.html") === 0) {
initInterfaceLogin(); initInterfaceLogin();
} else if (page.indexOf("network.html") === 0) { } else if (page.indexOf("network.html") === 0) {

View File

@ -835,12 +835,9 @@ function initInterfaceFollowing() {
} }
var InterfaceFunctions = function() var InterfaceFunctions = function () {
{ this.init = function () {
this.init = function()
{
initUser(initFollowing_); initUser(initFollowing_);
initHashWatching();
}; };
function initFollowing_(cbFunc, cbArg) { function initFollowing_(cbFunc, cbArg) {