really fix quoting
This commit is contained in:
parent
7b57a8b600
commit
236b7ff6b5
@ -1716,7 +1716,7 @@
|
|||||||
return g.callbacks.push(quoteBacklink.node);
|
return g.callbacks.push(quoteBacklink.node);
|
||||||
},
|
},
|
||||||
node: function(root) {
|
node: function(root) {
|
||||||
var container, el, id, link, opbl, qid, quote, quotes, tid, _i, _len, _ref, _results;
|
var container, el, id, link, opbl, qid, quote, quotes, tid, _i, _len, _ref, _ref2, _results;
|
||||||
if (/inline/.test(root.className)) {
|
if (/inline/.test(root.className)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -1731,7 +1731,7 @@
|
|||||||
_ref = $$('a.quotelink', root);
|
_ref = $$('a.quotelink', root);
|
||||||
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||||
quote = _ref[_i];
|
quote = _ref[_i];
|
||||||
qid = quote.hash.slice(1) || quote.getAttribute('data-href').match(/\d+$/)[0];
|
qid = ((_ref2 = quote.hash) != null ? _ref2.slice(1) : void 0) || quote.getAttribute('data-href').match(/\d+$/)[0];
|
||||||
if (!qid) {
|
if (!qid) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -1963,7 +1963,7 @@
|
|||||||
return g.callbacks.push(quoteOP.node);
|
return g.callbacks.push(quoteOP.node);
|
||||||
},
|
},
|
||||||
node: function(root) {
|
node: function(root) {
|
||||||
var qid, quote, tid, _i, _len, _ref, _results;
|
var qid, quote, tid, _i, _len, _ref, _ref2, _results;
|
||||||
if (root.className === 'inline') {
|
if (root.className === 'inline') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -1972,7 +1972,7 @@
|
|||||||
_results = [];
|
_results = [];
|
||||||
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||||
quote = _ref[_i];
|
quote = _ref[_i];
|
||||||
qid = quote.hash.slice(1) || quote.getAttribute('data-href').match(/\d+/)[0];
|
qid = ((_ref2 = quote.hash) != null ? _ref2.slice(1) : void 0) || quote.getAttribute('data-href').match(/\d+/)[0];
|
||||||
_results.push(qid === tid ? quote.innerHTML += ' (OP)' : void 0);
|
_results.push(qid === tid ? quote.innerHTML += ' (OP)' : void 0);
|
||||||
}
|
}
|
||||||
return _results;
|
return _results;
|
||||||
|
|||||||
@ -1387,7 +1387,7 @@ quoteBacklink =
|
|||||||
tid = g.THREAD_ID or root.parentNode.firstChild.id
|
tid = g.THREAD_ID or root.parentNode.firstChild.id
|
||||||
opbl = $.config 'OP Backlinks'
|
opbl = $.config 'OP Backlinks'
|
||||||
for quote in $$ 'a.quotelink', root
|
for quote in $$ 'a.quotelink', root
|
||||||
qid = quote.hash[1..] or quote.getAttribute('data-href').match(/\d+$/)[0]
|
qid = quote.hash?[1..] or quote.getAttribute('data-href').match(/\d+$/)[0]
|
||||||
continue unless qid
|
continue unless qid
|
||||||
#don't backlink the op
|
#don't backlink the op
|
||||||
continue if !opbl and qid is tid
|
continue if !opbl and qid is tid
|
||||||
@ -1539,7 +1539,7 @@ quoteOP =
|
|||||||
return if root.className is 'inline'
|
return if root.className is 'inline'
|
||||||
tid = g.THREAD_ID or $.x('ancestor::div[contains(@class,"thread")]/div', root).id
|
tid = g.THREAD_ID or $.x('ancestor::div[contains(@class,"thread")]/div', root).id
|
||||||
for quote in $$ 'a.quotelink', root
|
for quote in $$ 'a.quotelink', root
|
||||||
qid = quote.hash[1..] or quote.getAttribute('data-href').match(/\d+/)[0]
|
qid = quote.hash?[1..] or quote.getAttribute('data-href').match(/\d+/)[0]
|
||||||
if qid is tid
|
if qid is tid
|
||||||
quote.innerHTML += ' (OP)'
|
quote.innerHTML += ' (OP)'
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user