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;
|
||||
e.preventDefault();
|
||||
target = e.target;
|
||||
if (!(dialog = $('#qr'))) {
|
||||
if (dialog = $('#qr')) {
|
||||
qr.autohide.unset();
|
||||
} else {
|
||||
dialog = qr.dialog(target);
|
||||
}
|
||||
qr.autohide.unset();
|
||||
id = target.textContent;
|
||||
text = ">>" + id + "\n";
|
||||
selection = window.getSelection();
|
||||
|
||||
@ -824,9 +824,10 @@ qr =
|
||||
quote: (e) ->
|
||||
e.preventDefault()
|
||||
{target} = e
|
||||
unless dialog = $ '#qr'
|
||||
if dialog = $ '#qr'
|
||||
qr.autohide.unset()
|
||||
else
|
||||
dialog = qr.dialog target
|
||||
qr.autohide.unset()
|
||||
|
||||
id = target.textContent
|
||||
text = ">>#{id}\n"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user