merge QR.node into QR.init
This commit is contained in:
parent
288fede1ca
commit
e5239d8947
@ -1227,7 +1227,11 @@
|
|||||||
QR = {
|
QR = {
|
||||||
init: function() {
|
init: function() {
|
||||||
var holder;
|
var holder;
|
||||||
g.callbacks.push(QR.node);
|
g.callbacks.push(function(root) {
|
||||||
|
var quote;
|
||||||
|
quote = $('a.quotejs + a', root);
|
||||||
|
return $.bind(quote, 'click', QR.quote);
|
||||||
|
});
|
||||||
$.append(d.body, $.el('iframe', {
|
$.append(d.body, $.el('iframe', {
|
||||||
name: 'iframe'
|
name: 'iframe'
|
||||||
}));
|
}));
|
||||||
@ -1275,11 +1279,6 @@
|
|||||||
$.rm(QR.el);
|
$.rm(QR.el);
|
||||||
return QR.el = null;
|
return QR.el = null;
|
||||||
},
|
},
|
||||||
node: function(root) {
|
|
||||||
var quote;
|
|
||||||
quote = $('a.quotejs + a', root);
|
|
||||||
return $.bind(quote, 'click', QR.quote);
|
|
||||||
},
|
|
||||||
dialog: function(text) {
|
dialog: function(text) {
|
||||||
var el, l, ta;
|
var el, l, ta;
|
||||||
if (text == null) {
|
if (text == null) {
|
||||||
|
|||||||
@ -963,7 +963,9 @@ cooldown =
|
|||||||
|
|
||||||
QR =
|
QR =
|
||||||
init: ->
|
init: ->
|
||||||
g.callbacks.push QR.node
|
g.callbacks.push (root) ->
|
||||||
|
quote = $ 'a.quotejs + a', root
|
||||||
|
$.bind quote, 'click', QR.quote
|
||||||
$.append d.body, $.el 'iframe',
|
$.append d.body, $.el 'iframe',
|
||||||
name: 'iframe'
|
name: 'iframe'
|
||||||
$.bind window, 'message', QR.receive
|
$.bind window, 'message', QR.receive
|
||||||
@ -998,9 +1000,6 @@ QR =
|
|||||||
close: ->
|
close: ->
|
||||||
$.rm QR.el
|
$.rm QR.el
|
||||||
QR.el = null
|
QR.el = null
|
||||||
node: (root) ->
|
|
||||||
quote = $ 'a.quotejs + a', root
|
|
||||||
$.bind quote, 'click', QR.quote
|
|
||||||
dialog: (text='') ->
|
dialog: (text='') ->
|
||||||
QR.el = el = ui.dialog 'qr', top: '0', left: '0', "
|
QR.el = el = ui.dialog 'qr', top: '0', left: '0', "
|
||||||
<a class=close title=close>X</a><input type=checkbox id=autohide title=autohide>
|
<a class=close title=close>X</a><input type=checkbox id=autohide title=autohide>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user