Inherited indices too stronk

This commit is contained in:
Zixaphir 2013-05-07 23:53:42 -07:00
parent 0fbb87dd47
commit c40b978e1f
6 changed files with 16 additions and 33 deletions

View File

@ -3742,7 +3742,7 @@
id: 'scroll-marker' id: 'scroll-marker'
}), }),
setBoardList: function() { setBoardList: function() {
var a, boardList, btn, fourchannav, fullBoardList, settings; var a, boardList, btn, fourchannav, fullBoardList;
fourchannav = $.id('boardNavDesktop'); fourchannav = $.id('boardNavDesktop');
if (a = $("a[href*='/" + g.BOARD + "/']", fourchannav)) { if (a = $("a[href*='/" + g.BOARD + "/']", fourchannav)) {
@ -3756,9 +3756,8 @@
btn = $('.hide-board-list-button', fullBoardList); btn = $('.hide-board-list-button', fullBoardList);
$.on(btn, 'click', Header.toggleBoardList); $.on(btn, 'click', Header.toggleBoardList);
$.rm($('#navtopright', fullBoardList)); $.rm($('#navtopright', fullBoardList));
settings = $.id('navtopright'); $.prepend(d.body, $.id('navtopright'));
$.prepend(d.body, settings); $.add(d.body, Header.menuButton);
$.add(settings, Header.menuButton);
$.add(boardList, fullBoardList); $.add(boardList, fullBoardList);
$.add(Header.bar, [Header.shortcuts, boardList, Header.notify, Header.toggle]); $.add(Header.bar, [Header.shortcuts, boardList, Header.notify, Header.toggle]);
Header.setCustomNav(Conf['Custom Board Navigation']); Header.setCustomNav(Conf['Custom Board Navigation']);
@ -13029,11 +13028,7 @@
if (!Main.isThisPageLegit()) { if (!Main.isThisPageLegit()) {
return; return;
} }
return $.asap((function() { return $.add(d.body, link);
return $.id('boardNavMobile');
}), function() {
return $.prepend($.id('navtopright'), [$.tn(' ['), link, $.tn('] ')]);
});
}); });
$.get('previousversion', null, function(item) { $.get('previousversion', null, function(item) {
var changelog, curr, el, prev, previous; var changelog, curr, el, prev, previous;

View File

@ -3738,7 +3738,7 @@
id: 'scroll-marker' id: 'scroll-marker'
}), }),
setBoardList: function() { setBoardList: function() {
var a, boardList, btn, fourchannav, fullBoardList, settings; var a, boardList, btn, fourchannav, fullBoardList;
fourchannav = $.id('boardNavDesktop'); fourchannav = $.id('boardNavDesktop');
if (a = $("a[href*='/" + g.BOARD + "/']", fourchannav)) { if (a = $("a[href*='/" + g.BOARD + "/']", fourchannav)) {
@ -3752,9 +3752,8 @@
btn = $('.hide-board-list-button', fullBoardList); btn = $('.hide-board-list-button', fullBoardList);
$.on(btn, 'click', Header.toggleBoardList); $.on(btn, 'click', Header.toggleBoardList);
$.rm($('#navtopright', fullBoardList)); $.rm($('#navtopright', fullBoardList));
settings = $.id('navtopright'); $.prepend(d.body, $.id('navtopright'));
$.prepend(d.body, settings); $.add(d.body, Header.menuButton);
$.add(settings, Header.menuButton);
$.add(boardList, fullBoardList); $.add(boardList, fullBoardList);
$.add(Header.bar, [Header.shortcuts, boardList, Header.notify, Header.toggle]); $.add(Header.bar, [Header.shortcuts, boardList, Header.notify, Header.toggle]);
Header.setCustomNav(Conf['Custom Board Navigation']); Header.setCustomNav(Conf['Custom Board Navigation']);
@ -13050,11 +13049,7 @@
if (!Main.isThisPageLegit()) { if (!Main.isThisPageLegit()) {
return; return;
} }
return $.asap((function() { return $.add(d.body, link);
return $.id('boardNavMobile');
}), function() {
return $.prepend($.id('navtopright'), [$.tn(' ['), link, $.tn('] ')]);
});
}); });
$.get('previousversion', null, function(item) { $.get('previousversion', null, function(item) {
var changelog, curr, el, prev, previous; var changelog, curr, el, prev, previous;

Binary file not shown.

View File

@ -3740,7 +3740,7 @@
id: 'scroll-marker' id: 'scroll-marker'
}), }),
setBoardList: function() { setBoardList: function() {
var a, boardList, btn, fourchannav, fullBoardList, settings; var a, boardList, btn, fourchannav, fullBoardList;
fourchannav = $.id('boardNavDesktop'); fourchannav = $.id('boardNavDesktop');
if (a = $("a[href*='/" + g.BOARD + "/']", fourchannav)) { if (a = $("a[href*='/" + g.BOARD + "/']", fourchannav)) {
@ -3754,9 +3754,8 @@
btn = $('.hide-board-list-button', fullBoardList); btn = $('.hide-board-list-button', fullBoardList);
$.on(btn, 'click', Header.toggleBoardList); $.on(btn, 'click', Header.toggleBoardList);
$.rm($('#navtopright', fullBoardList)); $.rm($('#navtopright', fullBoardList));
settings = $.id('navtopright'); $.prepend(d.body, $.id('navtopright'));
$.prepend(d.body, settings); $.add(d.body, Header.menuButton);
$.add(settings, Header.menuButton);
$.add(boardList, fullBoardList); $.add(boardList, fullBoardList);
$.add(Header.bar, [Header.shortcuts, boardList, Header.notify, Header.toggle]); $.add(Header.bar, [Header.shortcuts, boardList, Header.notify, Header.toggle]);
Header.setCustomNav(Conf['Custom Board Navigation']); Header.setCustomNav(Conf['Custom Board Navigation']);
@ -13033,11 +13032,7 @@
if (!Main.isThisPageLegit()) { if (!Main.isThisPageLegit()) {
return; return;
} }
return $.asap((function() { return $.add(d.body, link);
return $.id('boardNavMobile');
}), function() {
return $.prepend($.id('navtopright'), [$.tn(' ['), link, $.tn('] ')]);
});
}); });
$.get('previousversion', null, function(item) { $.get('previousversion', null, function(item) {
var changelog, curr, el, prev, previous; var changelog, curr, el, prev, previous;

View File

@ -93,10 +93,9 @@ Header =
$.on btn, 'click', Header.toggleBoardList $.on btn, 'click', Header.toggleBoardList
$.rm $ '#navtopright', fullBoardList $.rm $ '#navtopright', fullBoardList
settings = $.id('navtopright') $.prepend d.body, $.id('navtopright')
$.prepend d.body, settings $.add d.body, Header.menuButton
$.add settings, Header.menuButton
$.add boardList, fullBoardList $.add boardList, fullBoardList
$.add Header.bar, [Header.shortcuts, boardList, Header.notify, Header.toggle] $.add Header.bar, [Header.shortcuts, boardList, Header.notify, Header.toggle]

View File

@ -11,8 +11,7 @@ Settings =
return unless Main.isThisPageLegit() return unless Main.isThisPageLegit()
# Wait for #boardNavMobile instead of #boardNavDesktop, # Wait for #boardNavMobile instead of #boardNavDesktop,
# it might be incomplete otherwise. # it might be incomplete otherwise.
$.asap (-> $.id 'boardNavMobile'), -> $.add d.body, link
$.prepend $.id('navtopright'), [$.tn(' ['), link, $.tn('] ')]
$.get 'previousversion', null, (item) -> $.get 'previousversion', null, (item) ->
if previous = item['previousversion'] if previous = item['previousversion']