unless -> if / else
This commit is contained in:
parent
b4d078a1f1
commit
3862aeae56
@ -1106,10 +1106,11 @@
|
|||||||
var dialog, id, s, selection, selectionID, ta, target, text, _ref;
|
var dialog, id, s, selection, selectionID, ta, target, text, _ref;
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
target = e.target;
|
target = e.target;
|
||||||
if (!(dialog = $('#qr'))) {
|
if (dialog = $('#qr')) {
|
||||||
|
qr.autohide.unset();
|
||||||
|
} else {
|
||||||
dialog = qr.dialog(target);
|
dialog = qr.dialog(target);
|
||||||
}
|
}
|
||||||
qr.autohide.unset();
|
|
||||||
id = target.textContent;
|
id = target.textContent;
|
||||||
text = ">>" + id + "\n";
|
text = ">>" + id + "\n";
|
||||||
selection = window.getSelection();
|
selection = window.getSelection();
|
||||||
|
|||||||
@ -824,9 +824,10 @@ qr =
|
|||||||
quote: (e) ->
|
quote: (e) ->
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
{target} = e
|
{target} = e
|
||||||
unless dialog = $ '#qr'
|
if dialog = $ '#qr'
|
||||||
|
qr.autohide.unset()
|
||||||
|
else
|
||||||
dialog = qr.dialog target
|
dialog = qr.dialog target
|
||||||
qr.autohide.unset()
|
|
||||||
|
|
||||||
id = target.textContent
|
id = target.textContent
|
||||||
text = ">>#{id}\n"
|
text = ">>#{id}\n"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user