Resolve a QR console error

This commit is contained in:
Zixaphir 2014-04-07 11:38:04 -07:00
parent d215221c71
commit b04317bf92
3 changed files with 14 additions and 4 deletions

View File

@ -12568,17 +12568,21 @@
$.addClass(doc, view);
({
index: function() {
var _ref;
delete g.THREADID;
QR.link.textContent = 'Start a Thread';
if (Conf['Index Mode'] === 'catalog') {
return Index.cb.toggleCatalogMode();
Index.cb.toggleCatalogMode();
}
return (_ref = QR.posts[0]) != null ? _ref.thread = 'new' : void 0;
},
thread: function() {
var _ref;
QR.link.textContent = 'Reply to Thread';
if (Conf['Index Mode'] === 'catalog') {
return $.rmClass(doc, 'catalog-mode');
$.rmClass(doc, 'catalog-mode');
}
return (_ref = QR.posts[0]) != null ? _ref.thread = g.THREADID : void 0;
}
})[view]();
return g.VIEW = view;

View File

@ -12589,17 +12589,21 @@
$.addClass(doc, view);
({
index: function() {
var _ref;
delete g.THREADID;
QR.link.textContent = 'Start a Thread';
if (Conf['Index Mode'] === 'catalog') {
return Index.cb.toggleCatalogMode();
Index.cb.toggleCatalogMode();
}
return (_ref = QR.posts[0]) != null ? _ref.thread = 'new' : void 0;
},
thread: function() {
var _ref;
QR.link.textContent = 'Reply to Thread';
if (Conf['Index Mode'] === 'catalog') {
return $.rmClass(doc, 'catalog-mode');
$.rmClass(doc, 'catalog-mode');
}
return (_ref = QR.posts[0]) != null ? _ref.thread = g.THREADID : void 0;
}
})[view]();
return g.VIEW = view;

View File

@ -116,10 +116,12 @@ Navigate =
delete g.THREADID
QR.link.textContent = 'Start a Thread'
Index.cb.toggleCatalogMode() if Conf['Index Mode'] is 'catalog'
QR.posts[0]?.thread = 'new'
thread: ->
QR.link.textContent = 'Reply to Thread'
$.rmClass doc, 'catalog-mode' if Conf['Index Mode'] is 'catalog'
QR.posts[0]?.thread = g.THREADID
}[view]()
g.VIEW = view