Fix a rare bug where the board list would be incomplete.
This commit is contained in:
parent
5b874152b7
commit
e82e9b9f63
@ -1048,7 +1048,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$.asap((function() {
|
$.asap((function() {
|
||||||
return $.id('boardNavDesktop');
|
return $.id('boardNavMobile');
|
||||||
}), Header.setBoardList);
|
}), Header.setBoardList);
|
||||||
return $.prepend(d.body, headerEl);
|
return $.prepend(d.body, headerEl);
|
||||||
});
|
});
|
||||||
|
|||||||
@ -34,7 +34,9 @@ Header =
|
|||||||
|
|
||||||
$.asap (-> d.body), ->
|
$.asap (-> d.body), ->
|
||||||
return unless Main.isThisPageLegit()
|
return unless Main.isThisPageLegit()
|
||||||
$.asap (-> $.id 'boardNavDesktop'), Header.setBoardList
|
# Wait for #boardNavMobile instead of #boardNavDesktop,
|
||||||
|
# it might be incomplete otherwise.
|
||||||
|
$.asap (-> $.id 'boardNavMobile'), Header.setBoardList
|
||||||
$.prepend d.body, headerEl
|
$.prepend d.body, headerEl
|
||||||
|
|
||||||
setBoardList: ->
|
setBoardList: ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user