Auto-hide fixes.
This commit is contained in:
parent
f45da76cc1
commit
16cccee5a0
@ -1200,7 +1200,7 @@
|
|||||||
});
|
});
|
||||||
if (conf['Persistent QR']) {
|
if (conf['Persistent QR']) {
|
||||||
qr.dialog();
|
qr.dialog();
|
||||||
return $.id('autohide').click();
|
if (conf['Auto Hide QR']) return $.id('autohide').click();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
open: function() {
|
open: function() {
|
||||||
@ -1215,7 +1215,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
hide: function() {
|
hide: function() {
|
||||||
return qr.el.lastChild.hidden = this.checked;
|
if (this.checked) {
|
||||||
|
return $.addClass(qr.el, 'autohide');
|
||||||
|
} else {
|
||||||
|
return $.removeClass(qr.el, 'autohide');
|
||||||
|
}
|
||||||
},
|
},
|
||||||
close: function() {
|
close: function() {
|
||||||
return qr.el.hidden = true;
|
return qr.el.hidden = true;
|
||||||
@ -1241,6 +1245,9 @@
|
|||||||
var input, _i, _len, _ref;
|
var input, _i, _len, _ref;
|
||||||
qr.el = ui.dialog('qr', 'top:0;right:0;', '\
|
qr.el = ui.dialog('qr', 'top:0;right:0;', '\
|
||||||
<style>\
|
<style>\
|
||||||
|
.autohide:not(:hover) > div:not(.move) {\
|
||||||
|
display: none;\
|
||||||
|
}\
|
||||||
#qr > .move {\
|
#qr > .move {\
|
||||||
min-width: 300px;\
|
min-width: 300px;\
|
||||||
text-align: right;\
|
text-align: right;\
|
||||||
|
|||||||
@ -872,7 +872,7 @@ qr =
|
|||||||
$.on $('.quotejs + .quotejs', root), 'click', qr.quote
|
$.on $('.quotejs + .quotejs', root), 'click', qr.quote
|
||||||
if conf['Persistent QR']
|
if conf['Persistent QR']
|
||||||
qr.dialog()
|
qr.dialog()
|
||||||
$.id('autohide').click()
|
$.id('autohide').click() if conf['Auto Hide QR']
|
||||||
|
|
||||||
open: ->
|
open: ->
|
||||||
if qr.el
|
if qr.el
|
||||||
@ -884,7 +884,10 @@ qr =
|
|||||||
qr.dialog()
|
qr.dialog()
|
||||||
|
|
||||||
hide: ->
|
hide: ->
|
||||||
qr.el.lastChild.hidden = this.checked
|
if this.checked
|
||||||
|
$.addClass qr.el, 'autohide'
|
||||||
|
else
|
||||||
|
$.removeClass qr.el, 'autohide'
|
||||||
|
|
||||||
close: ->
|
close: ->
|
||||||
qr.el.hidden = true
|
qr.el.hidden = true
|
||||||
@ -912,6 +915,9 @@ qr =
|
|||||||
dialog: ->
|
dialog: ->
|
||||||
qr.el = ui.dialog 'qr', 'top:0;right:0;', '
|
qr.el = ui.dialog 'qr', 'top:0;right:0;', '
|
||||||
<style>
|
<style>
|
||||||
|
.autohide:not(:hover) > div:not(.move) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
#qr > .move {
|
#qr > .move {
|
||||||
min-width: 300px;
|
min-width: 300px;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user