append -> add

This commit is contained in:
James Campos 2011-09-04 23:23:50 -07:00
parent 7cc74db296
commit c10029bc37
2 changed files with 8 additions and 8 deletions

View File

@ -1227,7 +1227,7 @@
quote = $('a.quotejs + a', root); quote = $('a.quotejs + a', root);
return $.bind(quote, 'click', QR.quote); return $.bind(quote, 'click', QR.quote);
}); });
$.append(d.body, $.el('iframe', { $.add(d.body, $.el('iframe', {
name: 'iframe', name: 'iframe',
hidden: true hidden: true
})); }));
@ -1270,7 +1270,7 @@
$.bind($('a', div), 'click', function() { $.bind($('a', div), 'click', function() {
return $.rm(this.parentNode); return $.rm(this.parentNode);
}); });
$.append($('#files', QR.qr), div); $.add($('#files', QR.qr), div);
return file.click(); return file.click();
}, },
attachNext: function() { attachNext: function() {
@ -1341,7 +1341,7 @@
img = $.el('img', { img = $.el('img', {
src: e.target.result src: e.target.result
}); });
return $.append($('#thumbs', QR.qr), img); return $.add($('#thumbs', QR.qr), img);
}; };
fr.readAsDataURL(file); fr.readAsDataURL(file);
return; return;
@ -1435,7 +1435,7 @@
$.bind($('#recaptcha_response_field', qr), 'keydown', Recaptcha.listener); $.bind($('#recaptcha_response_field', qr), 'keydown', Recaptcha.listener);
QR.captchaImg(); QR.captchaImg();
QR.captchaLength(); QR.captchaLength();
$.append(d.body, qr); $.add(d.body, qr);
ta = $('textarea', qr); ta = $('textarea', qr);
l = text.length; l = text.length;
ta.setSelectionRange(l, l); ta.setSelectionRange(l, l);

View File

@ -963,7 +963,7 @@ QR =
g.callbacks.push (root) -> g.callbacks.push (root) ->
quote = $ 'a.quotejs + a', root quote = $ 'a.quotejs + a', root
$.bind quote, 'click', QR.quote $.bind quote, 'click', QR.quote
$.append d.body, $.el 'iframe', $.add d.body, $.el 'iframe',
name: 'iframe' name: 'iframe'
hidden: true hidden: true
$.bind window, 'message', QR.receive $.bind window, 'message', QR.receive
@ -995,7 +995,7 @@ QR =
file = $ 'input', div file = $ 'input', div
$.bind file, 'change', QR.change $.bind file, 'change', QR.change
$.bind $('a', div), 'click', -> $.rm @parentNode $.bind $('a', div), 'click', -> $.rm @parentNode
$.append $('#files', QR.qr), div $.add $('#files', QR.qr), div
file.click() file.click()
attachNext: -> attachNext: ->
old = $ '[type=file]', QR.qr old = $ '[type=file]', QR.qr
@ -1046,7 +1046,7 @@ QR =
fr.onload = (e) -> fr.onload = (e) ->
img = $.el 'img', img = $.el 'img',
src: e.target.result src: e.target.result
$.append $('#thumbs', QR.qr), img $.add $('#thumbs', QR.qr), img
fr.readAsDataURL file fr.readAsDataURL file
return return
if @ is $('#files div:last-of-type input', QR.qr) if @ is $('#files div:last-of-type input', QR.qr)
@ -1140,7 +1140,7 @@ QR =
$.bind $('#recaptcha_response_field', qr), 'keydown', Recaptcha.listener $.bind $('#recaptcha_response_field', qr), 'keydown', Recaptcha.listener
QR.captchaImg() QR.captchaImg()
QR.captchaLength() QR.captchaLength()
$.append d.body, qr $.add d.body, qr
ta = $ 'textarea', qr ta = $ 'textarea', qr
l = text.length l = text.length
ta.setSelectionRange l, l ta.setSelectionRange l, l