Apparently Main.clean() can break things pretty hard.
But only if on the same board? Weird.
This commit is contained in:
parent
497c231003
commit
bb3d9c9d84
@ -12793,7 +12793,6 @@
|
||||
} else {
|
||||
view = view || 'index';
|
||||
}
|
||||
Main.clean();
|
||||
if (view === g.VIEW) {
|
||||
if (view === 'index') {
|
||||
if (boardID === g.BOARD.ID) {
|
||||
@ -12803,7 +12802,11 @@
|
||||
Main.updateBoard(boardID);
|
||||
return Index.update();
|
||||
} else {
|
||||
return Main.refresh(context);
|
||||
return Main.refresh({
|
||||
boardID: boardID,
|
||||
view: view,
|
||||
threadID: threadID
|
||||
});
|
||||
}
|
||||
} else {
|
||||
return Main.disconnect();
|
||||
@ -12852,7 +12855,7 @@
|
||||
if (subtitle = $('.boardSubtitle')) {
|
||||
$.rm(subtitle);
|
||||
}
|
||||
return $('.boardTitle').innerHTML = "/" + board.board + "/ - " + board.title;
|
||||
return $('.boardTitle').innerHTML = d.title = "/" + board.board + "/ - " + board.title;
|
||||
},
|
||||
refresh: function(context) {
|
||||
var boardID, name, threadID, view, _results, _results1;
|
||||
|
||||
@ -12767,7 +12767,6 @@
|
||||
} else {
|
||||
view = view || 'index';
|
||||
}
|
||||
Main.clean();
|
||||
if (view === g.VIEW) {
|
||||
if (view === 'index') {
|
||||
if (boardID === g.BOARD.ID) {
|
||||
@ -12777,7 +12776,11 @@
|
||||
Main.updateBoard(boardID);
|
||||
return Index.update();
|
||||
} else {
|
||||
return Main.refresh(context);
|
||||
return Main.refresh({
|
||||
boardID: boardID,
|
||||
view: view,
|
||||
threadID: threadID
|
||||
});
|
||||
}
|
||||
} else {
|
||||
return Main.disconnect();
|
||||
@ -12826,7 +12829,7 @@
|
||||
if (subtitle = $('.boardSubtitle')) {
|
||||
$.rm(subtitle);
|
||||
}
|
||||
return $('.boardTitle').innerHTML = "/" + board.board + "/ - " + board.title;
|
||||
return $('.boardTitle').innerHTML = d.title = "/" + board.board + "/ - " + board.title;
|
||||
},
|
||||
refresh: function(context) {
|
||||
var boardID, name, threadID, view, _results, _results1;
|
||||
|
||||
@ -345,7 +345,6 @@ Main =
|
||||
view = 'thread'
|
||||
else
|
||||
view = view or 'index'
|
||||
Main.clean()
|
||||
|
||||
# Moving from thread to thread or index to index.
|
||||
if view is g.VIEW
|
||||
@ -357,7 +356,7 @@ Main =
|
||||
Index.update()
|
||||
|
||||
else
|
||||
Main.refresh context
|
||||
Main.refresh {boardID, view, threadID}
|
||||
|
||||
else
|
||||
Main.disconnect()
|
||||
@ -394,7 +393,7 @@ Main =
|
||||
|
||||
updateTitle: (board) ->
|
||||
$.rm subtitle if subtitle = $ '.boardSubtitle'
|
||||
$('.boardTitle').innerHTML = "/#{board.board}/ - #{board.title}"
|
||||
$('.boardTitle').innerHTML = d.title = "/#{board.board}/ - #{board.title}"
|
||||
|
||||
refresh: (context) ->
|
||||
{boardID, view, threadID} = context
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user