Fix a rare bug where the board list would be incomplete.

This commit is contained in:
Nicolas Stepien 2013-03-13 12:43:57 +01:00
parent 5b874152b7
commit e82e9b9f63
2 changed files with 4 additions and 2 deletions

View File

@ -1048,7 +1048,7 @@
return;
}
$.asap((function() {
return $.id('boardNavDesktop');
return $.id('boardNavMobile');
}), Header.setBoardList);
return $.prepend(d.body, headerEl);
});

View File

@ -34,7 +34,9 @@ Header =
$.asap (-> d.body), ->
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
setBoardList: ->