Fix auto-hide QR

This commit is contained in:
Jordan Bates 2013-04-24 18:03:55 -07:00
parent 133c8bd1f9
commit aa7701f9ca
4 changed files with 8 additions and 8 deletions

View File

@ -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)) {

View File

@ -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)) {

View File

@ -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)) {

View File

@ -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.