mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-01-14 17:07:53 +00:00
fix of unwanted watchHashChange() initialization
This commit is contained in:
parent
6a6b3aba5d
commit
9279b93edf
@ -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) {
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user