-e, +data

This commit is contained in:
James Campos 2011-09-21 00:27:10 -07:00
parent 14f0a68bff
commit a37af47916
2 changed files with 3 additions and 5 deletions

View File

@ -1431,12 +1431,11 @@
ta.focus(); ta.focus();
return (_base = $('[name=resto]', qr)).value || (_base.value = tid); return (_base = $('[name=resto]', qr)).value || (_base.value = tid);
}, },
receive: function(e) { receive: function(data) {
var cooldown, data, qr, row, tc, _ref, _ref2; var cooldown, qr, row, tc, _ref, _ref2;
$('iframe[name=iframe]').src = 'about:blank'; $('iframe[name=iframe]').src = 'about:blank';
qr = QR.qr; qr = QR.qr;
row = (_ref = $('#files input[form]', qr)) != null ? _ref.parentNode : void 0; row = (_ref = $('#files input[form]', qr)) != null ? _ref.parentNode : void 0;
data = e.data;
if (data) { if (data) {
if (QR.op) { if (QR.op) {
window.location = data; window.location = data;

View File

@ -1127,11 +1127,10 @@ QR =
ta.setSelectionRange i, i ta.setSelectionRange i, i
ta.focus() ta.focus()
$('[name=resto]', qr).value or= tid $('[name=resto]', qr).value or= tid
receive: (e) -> receive: (data) ->
$('iframe[name=iframe]').src = 'about:blank' $('iframe[name=iframe]').src = 'about:blank'
{qr} = QR {qr} = QR
row = $('#files input[form]', qr)?.parentNode row = $('#files input[form]', qr)?.parentNode
{data} = e
if data if data
window.location = data if QR.op window.location = data if QR.op
return return