Change .current click behavior
This commit is contained in:
parent
ce5a6f2552
commit
6f45d41823
@ -2320,6 +2320,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
history.pushState(null, '', this.pathname);
|
||||||
return Index.update();
|
return Index.update();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -2671,6 +2672,7 @@
|
|||||||
nodes = Index.sortedNodes;
|
nodes = Index.sortedNodes;
|
||||||
}
|
}
|
||||||
$.rmAll(Index.root);
|
$.rmAll(Index.root);
|
||||||
|
$.rmAll(Header.hover);
|
||||||
if (Conf['Show Replies']) {
|
if (Conf['Show Replies']) {
|
||||||
Index.buildReplies(nodes);
|
Index.buildReplies(nodes);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2330,6 +2330,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
history.pushState(null, '', this.pathname);
|
||||||
return Index.update();
|
return Index.update();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -2681,6 +2682,7 @@
|
|||||||
nodes = Index.sortedNodes;
|
nodes = Index.sortedNodes;
|
||||||
}
|
}
|
||||||
$.rmAll(Index.root);
|
$.rmAll(Index.root);
|
||||||
|
$.rmAll(Header.hover);
|
||||||
if (Conf['Show Replies']) {
|
if (Conf['Show Replies']) {
|
||||||
Index.buildReplies(nodes);
|
Index.buildReplies(nodes);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -130,6 +130,7 @@ Index =
|
|||||||
link: (e) ->
|
link: (e) ->
|
||||||
return if g.VIEW isnt 'index' or /catalog/.test @href
|
return if g.VIEW isnt 'index' or /catalog/.test @href
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
|
history.pushState null, '', @pathname
|
||||||
Index.update()
|
Index.update()
|
||||||
|
|
||||||
scrollToIndex: ->
|
scrollToIndex: ->
|
||||||
@ -363,10 +364,12 @@ Index =
|
|||||||
else
|
else
|
||||||
nodes = Index.sortedNodes
|
nodes = Index.sortedNodes
|
||||||
$.rmAll Index.root
|
$.rmAll Index.root
|
||||||
|
$.rmAll Header.hover
|
||||||
Index.buildReplies nodes if Conf['Show Replies']
|
Index.buildReplies nodes if Conf['Show Replies']
|
||||||
$.event 'IndexBuild', nodes
|
$.event 'IndexBuild', nodes
|
||||||
$.add Index.root, nodes
|
$.add Index.root, nodes
|
||||||
|
|
||||||
|
|
||||||
isSearching: false
|
isSearching: false
|
||||||
clearSearch: ->
|
clearSearch: ->
|
||||||
Index.searchInput.value = null
|
Index.searchInput.value = null
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user