...and how about not breaking the Index features in the process?

This commit is contained in:
Zixaphir 2014-01-09 14:11:57 -07:00
parent 22c244ce69
commit b3da171392
3 changed files with 3 additions and 3 deletions

View File

@ -2454,7 +2454,7 @@
if (!navigator.onLine) { if (!navigator.onLine) {
return; return;
} }
if (!Index.root.parentElement) { if (d.readyState !== 'loading' && Index.root.parentElement) {
board = $('.board'); board = $('.board');
$.replace(board, Index.root); $.replace(board, Index.root);
} }

View File

@ -2464,7 +2464,7 @@
if (!navigator.onLine) { if (!navigator.onLine) {
return; return;
} }
if (!Index.root.parentElement) { if (d.readyState !== 'loading' && Index.root.parentElement) {
board = $('.board'); board = $('.board');
$.replace(board, Index.root); $.replace(board, Index.root);
} }

View File

@ -203,7 +203,7 @@ Index =
update: (pageNum) -> update: (pageNum) ->
return unless navigator.onLine return unless navigator.onLine
unless Index.root.parentElement if d.readyState isnt 'loading' and Index.root.parentElement
board = $ '.board' board = $ '.board'
$.replace board, Index.root $.replace board, Index.root
Index.req?.abort() Index.req?.abort()