fix quick reply by removing buzzfeed stuff.

This commit is contained in:
James Campos 2010-06-30 20:21:10 -07:00
parent cae39703d7
commit 51deab5eb4
2 changed files with 9 additions and 2 deletions

View File

@ -470,6 +470,9 @@ quickReply: (e) ->
div.appendChild(closeB)
clone: $('form[name="post"]').cloneNode(true)
#remove buzzfeed
if bf: $('.bf', clone)
remove(bf)
clone.addEventListener('submit', submit, true)
clone.target: 'iframe'
if not REPLY
@ -492,6 +495,7 @@ quickReply: (e) ->
if selText: selection.toString()
textarea.value += ">$selText\n"
textarea.focus()
return
watch: ->

View File

@ -493,7 +493,7 @@ cursor: pointer; \
}
};
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();
if (!(qr = $('#qr'))) {
qr = tag('div');
@ -521,6 +521,8 @@ cursor: pointer; \
closeB.addEventListener('click', close, true);
div.appendChild(closeB);
clone = $('form[name="post"]').cloneNode(true);
//remove buzzfeed
(bf = $('.bf', clone)) ? remove(bf) : null;
clone.addEventListener('submit', submit, true);
clone.target = 'iframe';
if (!REPLY) {
@ -541,7 +543,8 @@ cursor: pointer; \
selection = window.getSelection();
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;
return textarea.focus();
textarea.focus();
return null;
};
watch = function() {
var text;