Fix auto-hide QR
This commit is contained in:
parent
133c8bd1f9
commit
aa7701f9ca
@ -7038,7 +7038,7 @@
|
||||
},
|
||||
persist: function() {
|
||||
QR.open();
|
||||
if (Conf['Auto-Hide QR']) {
|
||||
if (Conf['Auto Hide QR']) {
|
||||
return QR.hide();
|
||||
}
|
||||
},
|
||||
@ -8104,7 +8104,7 @@
|
||||
}
|
||||
QR.cleanNotifications();
|
||||
QR.cooldown.auto = QR.posts.length > 1;
|
||||
if (Conf['Auto-Hide QR'] && !QR.cooldown.auto) {
|
||||
if (Conf['Auto Hide QR'] && !QR.cooldown.auto) {
|
||||
QR.hide();
|
||||
}
|
||||
if (!QR.cooldown.auto && $.x('ancestor::div[@id="qr"]', d.activeElement)) {
|
||||
|
||||
@ -7034,7 +7034,7 @@
|
||||
},
|
||||
persist: function() {
|
||||
QR.open();
|
||||
if (Conf['Auto-Hide QR']) {
|
||||
if (Conf['Auto Hide QR']) {
|
||||
return QR.hide();
|
||||
}
|
||||
},
|
||||
@ -8126,7 +8126,7 @@
|
||||
}
|
||||
QR.cleanNotifications();
|
||||
QR.cooldown.auto = QR.posts.length > 1;
|
||||
if (Conf['Auto-Hide QR'] && !QR.cooldown.auto) {
|
||||
if (Conf['Auto Hide QR'] && !QR.cooldown.auto) {
|
||||
QR.hide();
|
||||
}
|
||||
if (!QR.cooldown.auto && $.x('ancestor::div[@id="qr"]', d.activeElement)) {
|
||||
|
||||
@ -6904,7 +6904,7 @@
|
||||
},
|
||||
persist: function() {
|
||||
QR.open();
|
||||
if (Conf['Auto-Hide QR']) {
|
||||
if (Conf['Auto Hide QR']) {
|
||||
return QR.hide();
|
||||
}
|
||||
},
|
||||
@ -7971,7 +7971,7 @@
|
||||
}
|
||||
QR.cleanNotifications();
|
||||
QR.cooldown.auto = QR.posts.length > 1;
|
||||
if (Conf['Auto-Hide QR'] && !QR.cooldown.auto) {
|
||||
if (Conf['Auto Hide QR'] && !QR.cooldown.auto) {
|
||||
QR.hide();
|
||||
}
|
||||
if (!QR.cooldown.auto && $.x('ancestor::div[@id="qr"]', d.activeElement)) {
|
||||
|
||||
@ -75,7 +75,7 @@ QR =
|
||||
|
||||
persist: ->
|
||||
QR.open()
|
||||
QR.hide() if Conf['Auto-Hide QR']
|
||||
QR.hide() if Conf['Auto Hide QR']
|
||||
open: ->
|
||||
if QR.nodes
|
||||
QR.nodes.el.hidden = false
|
||||
@ -947,7 +947,7 @@ QR =
|
||||
|
||||
# Enable auto-posting if we have stuff to post, disable it otherwise.
|
||||
QR.cooldown.auto = QR.posts.length > 1
|
||||
if Conf['Auto-Hide QR'] and !QR.cooldown.auto
|
||||
if Conf['Auto Hide QR'] and !QR.cooldown.auto
|
||||
QR.hide()
|
||||
if !QR.cooldown.auto and $.x 'ancestor::div[@id="qr"]', d.activeElement
|
||||
# Unfocus the focused element if it is one within the QR and we're not auto-posting.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user