fix quick reply by removing buzzfeed stuff.
This commit is contained in:
parent
cae39703d7
commit
51deab5eb4
@ -470,6 +470,9 @@ quickReply: (e) ->
|
|||||||
div.appendChild(closeB)
|
div.appendChild(closeB)
|
||||||
|
|
||||||
clone: $('form[name="post"]').cloneNode(true)
|
clone: $('form[name="post"]').cloneNode(true)
|
||||||
|
#remove buzzfeed
|
||||||
|
if bf: $('.bf', clone)
|
||||||
|
remove(bf)
|
||||||
clone.addEventListener('submit', submit, true)
|
clone.addEventListener('submit', submit, true)
|
||||||
clone.target: 'iframe'
|
clone.target: 'iframe'
|
||||||
if not REPLY
|
if not REPLY
|
||||||
@ -492,6 +495,7 @@ quickReply: (e) ->
|
|||||||
if selText: selection.toString()
|
if selText: selection.toString()
|
||||||
textarea.value += ">$selText\n"
|
textarea.value += ">$selText\n"
|
||||||
textarea.focus()
|
textarea.focus()
|
||||||
|
return
|
||||||
|
|
||||||
|
|
||||||
watch: ->
|
watch: ->
|
||||||
|
|||||||
@ -493,7 +493,7 @@ cursor: pointer; \
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
quickReply = function(e) {
|
quickReply = function(e) {
|
||||||
var _c, clone, closeB, div, input, minimizeB, qr, selText, selection, textarea, xpath;
|
var _c, bf, clone, closeB, div, input, minimizeB, qr, selText, selection, textarea, xpath;
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
if (!(qr = $('#qr'))) {
|
if (!(qr = $('#qr'))) {
|
||||||
qr = tag('div');
|
qr = tag('div');
|
||||||
@ -521,6 +521,8 @@ cursor: pointer; \
|
|||||||
closeB.addEventListener('click', close, true);
|
closeB.addEventListener('click', close, true);
|
||||||
div.appendChild(closeB);
|
div.appendChild(closeB);
|
||||||
clone = $('form[name="post"]').cloneNode(true);
|
clone = $('form[name="post"]').cloneNode(true);
|
||||||
|
//remove buzzfeed
|
||||||
|
(bf = $('.bf', clone)) ? remove(bf) : null;
|
||||||
clone.addEventListener('submit', submit, true);
|
clone.addEventListener('submit', submit, true);
|
||||||
clone.target = 'iframe';
|
clone.target = 'iframe';
|
||||||
if (!REPLY) {
|
if (!REPLY) {
|
||||||
@ -541,7 +543,8 @@ cursor: pointer; \
|
|||||||
selection = window.getSelection();
|
selection = window.getSelection();
|
||||||
id = typeof (_c = (x('preceding::span[@id][1]', selection.anchorNode))) === "undefined" || _c == undefined ? undefined : _c.id;
|
id = typeof (_c = (x('preceding::span[@id][1]', selection.anchorNode))) === "undefined" || _c == undefined ? undefined : _c.id;
|
||||||
id === this.parentNode.id ? (selText = selection.toString()) ? textarea.value += (">" + selText + "\n") : null : null;
|
id === this.parentNode.id ? (selText = selection.toString()) ? textarea.value += (">" + selText + "\n") : null : null;
|
||||||
return textarea.focus();
|
textarea.focus();
|
||||||
|
return null;
|
||||||
};
|
};
|
||||||
watch = function() {
|
watch = function() {
|
||||||
var text;
|
var text;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user