-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();
return (_base = $('[name=resto]', qr)).value || (_base.value = tid);
},
receive: function(e) {
var cooldown, data, qr, row, tc, _ref, _ref2;
receive: function(data) {
var cooldown, qr, row, tc, _ref, _ref2;
$('iframe[name=iframe]').src = 'about:blank';
qr = QR.qr;
row = (_ref = $('#files input[form]', qr)) != null ? _ref.parentNode : void 0;
data = e.data;
if (data) {
if (QR.op) {
window.location = data;

View File

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