return
This commit is contained in:
parent
ab3a4c6640
commit
79776710af
@ -11920,7 +11920,7 @@
|
|||||||
return $.on(replyLink, 'click', Navigate.navigate);
|
return $.on(replyLink, 'click', Navigate.navigate);
|
||||||
},
|
},
|
||||||
post: function() {
|
post: function() {
|
||||||
var hashlink, postlink, _i, _len, _ref, _results;
|
var hashlink, postlink, _i, _len, _ref;
|
||||||
if (g.VIEW === 'thread' && this.thread.ID === g.THREADID) {
|
if (g.VIEW === 'thread' && this.thread.ID === g.THREADID) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -11930,12 +11930,10 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
_ref = $$('.hashlink', this.nodes.comment);
|
_ref = $$('.hashlink', this.nodes.comment);
|
||||||
_results = [];
|
|
||||||
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||||
hashlink = _ref[_i];
|
hashlink = _ref[_i];
|
||||||
_results.push($.on(hashlink, 'click', Navigate.navigate));
|
$.on(hashlink, 'click', Navigate.navigate);
|
||||||
}
|
}
|
||||||
return _results;
|
|
||||||
},
|
},
|
||||||
clean: function() {
|
clean: function() {
|
||||||
var posts, threads;
|
var posts, threads;
|
||||||
|
|||||||
@ -11909,7 +11909,7 @@
|
|||||||
return $.on(replyLink, 'click', Navigate.navigate);
|
return $.on(replyLink, 'click', Navigate.navigate);
|
||||||
},
|
},
|
||||||
post: function() {
|
post: function() {
|
||||||
var hashlink, postlink, _i, _len, _ref, _results;
|
var hashlink, postlink, _i, _len, _ref;
|
||||||
if (g.VIEW === 'thread' && this.thread.ID === g.THREADID) {
|
if (g.VIEW === 'thread' && this.thread.ID === g.THREADID) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -11919,12 +11919,10 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
_ref = $$('.hashlink', this.nodes.comment);
|
_ref = $$('.hashlink', this.nodes.comment);
|
||||||
_results = [];
|
|
||||||
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||||
hashlink = _ref[_i];
|
hashlink = _ref[_i];
|
||||||
_results.push($.on(hashlink, 'click', Navigate.navigate));
|
$.on(hashlink, 'click', Navigate.navigate);
|
||||||
}
|
}
|
||||||
return _results;
|
|
||||||
},
|
},
|
||||||
clean: function() {
|
clean: function() {
|
||||||
var posts, threads;
|
var posts, threads;
|
||||||
|
|||||||
@ -2,7 +2,7 @@ Navigate =
|
|||||||
path: window.location.pathname
|
path: window.location.pathname
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW is 'catalog' or g.BOARD.ID is 'f'
|
return if g.VIEW is 'catalog' or g.BOARD.ID is 'f'
|
||||||
|
|
||||||
# blink/webkit throw a popstate on page load. Not what we want.
|
# blink/webkit throw a popstate on page load. Not what we want.
|
||||||
$.ready ->
|
$.ready ->
|
||||||
$.on window, 'popstate', Navigate.popstate
|
$.on window, 'popstate', Navigate.popstate
|
||||||
@ -31,6 +31,8 @@ Navigate =
|
|||||||
for hashlink in $$ '.hashlink', @nodes.comment
|
for hashlink in $$ '.hashlink', @nodes.comment
|
||||||
$.on hashlink, 'click', Navigate.navigate
|
$.on hashlink, 'click', Navigate.navigate
|
||||||
|
|
||||||
|
return
|
||||||
|
|
||||||
clean: ->
|
clean: ->
|
||||||
{posts, threads} = g
|
{posts, threads} = g
|
||||||
|
|
||||||
@ -133,7 +135,7 @@ Navigate =
|
|||||||
error: err
|
error: err
|
||||||
]
|
]
|
||||||
return false
|
return false
|
||||||
|
|
||||||
return unless board
|
return unless board
|
||||||
Navigate.updateTitle board
|
Navigate.updateTitle board
|
||||||
|
|
||||||
@ -147,7 +149,7 @@ Navigate =
|
|||||||
['ws', 'Yotsuba B New']
|
['ws', 'Yotsuba B New']
|
||||||
else
|
else
|
||||||
['nws', 'Yotsuba New']
|
['nws', 'Yotsuba New']
|
||||||
|
|
||||||
$.globalEval "var style_group = '#{style[1]}'"
|
$.globalEval "var style_group = '#{style[1]}'"
|
||||||
|
|
||||||
mainStyleSheet = $ 'link[title=switch]', d.head
|
mainStyleSheet = $ 'link[title=switch]', d.head
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user