Autohide Persistent QR.
This commit is contained in:
parent
c3cd4116bc
commit
d77f9d0d8e
@ -12342,14 +12342,6 @@
|
||||
status: $('[type=submit]', dialog),
|
||||
fileInput: $('[type=file]', dialog)
|
||||
};
|
||||
if (Conf['Remember QR Size']) {
|
||||
$.get('QR.size', '', function(item) {
|
||||
return nodes.com.style.cssText = item['QR.size'];
|
||||
});
|
||||
$.on(nodes.com, 'mouseup', function() {
|
||||
return $.set('QR.size', this.style.cssText);
|
||||
});
|
||||
}
|
||||
mimeTypes = $('ul.rules > li').textContent.trim().match(/: (.+)/)[1].toLowerCase().replace(/\w+/g, function(type) {
|
||||
switch (type) {
|
||||
case 'jpg':
|
||||
@ -12419,6 +12411,9 @@
|
||||
QR.captcha.init();
|
||||
Rice.nodes(dialog);
|
||||
$.add(d.body, dialog);
|
||||
if (Conf['Auto Hide QR']) {
|
||||
nodes.autohide.click();
|
||||
}
|
||||
return $.event('QRDialogCreation', null, dialog);
|
||||
},
|
||||
submit: function(e) {
|
||||
|
||||
@ -12341,14 +12341,6 @@
|
||||
status: $('[type=submit]', dialog),
|
||||
fileInput: $('[type=file]', dialog)
|
||||
};
|
||||
if (Conf['Remember QR Size']) {
|
||||
$.get('QR.size', '', function(item) {
|
||||
return nodes.com.style.cssText = item['QR.size'];
|
||||
});
|
||||
$.on(nodes.com, 'mouseup', function() {
|
||||
return $.set('QR.size', this.style.cssText);
|
||||
});
|
||||
}
|
||||
mimeTypes = $('ul.rules > li').textContent.trim().match(/: (.+)/)[1].toLowerCase().replace(/\w+/g, function(type) {
|
||||
switch (type) {
|
||||
case 'jpg':
|
||||
@ -12435,6 +12427,9 @@
|
||||
QR.captcha.init();
|
||||
Rice.nodes(dialog);
|
||||
$.add(d.body, dialog);
|
||||
if (Conf['Auto Hide QR']) {
|
||||
nodes.autohide.click();
|
||||
}
|
||||
return $.event('QRDialogCreation', null, dialog);
|
||||
},
|
||||
submit: function(e) {
|
||||
|
||||
Binary file not shown.
BIN
builds/crx.crx
BIN
builds/crx.crx
Binary file not shown.
@ -12283,14 +12283,6 @@
|
||||
status: $('[type=submit]', dialog),
|
||||
fileInput: $('[type=file]', dialog)
|
||||
};
|
||||
if (Conf['Remember QR Size']) {
|
||||
$.get('QR.size', '', function(item) {
|
||||
return nodes.com.style.cssText = item['QR.size'];
|
||||
});
|
||||
$.on(nodes.com, 'mouseup', function() {
|
||||
return $.set('QR.size', this.style.cssText);
|
||||
});
|
||||
}
|
||||
mimeTypes = $('ul.rules > li').textContent.trim().match(/: (.+)/)[1].toLowerCase().replace(/\w+/g, function(type) {
|
||||
switch (type) {
|
||||
case 'jpg':
|
||||
@ -12360,6 +12352,9 @@
|
||||
QR.captcha.init();
|
||||
Rice.nodes(dialog);
|
||||
$.add(d.body, dialog);
|
||||
if (Conf['Auto Hide QR']) {
|
||||
nodes.autohide.click();
|
||||
}
|
||||
return $.event('QRDialogCreation', null, dialog);
|
||||
},
|
||||
submit: function(e) {
|
||||
|
||||
@ -80,10 +80,13 @@ QR =
|
||||
QR.status()
|
||||
if !Conf['Remember Spoiler'] and QR.nodes.spoiler.checked
|
||||
QR.nodes.spoiler.click()
|
||||
|
||||
focusin: ->
|
||||
$.addClass QR.nodes.el, 'has-focus'
|
||||
|
||||
focusout: ->
|
||||
$.rmClass QR.nodes.el, 'has-focus'
|
||||
|
||||
hide: ->
|
||||
d.activeElement.blur()
|
||||
$.addClass QR.nodes.el, 'autohide'
|
||||
@ -817,12 +820,6 @@ QR =
|
||||
status: $ '[type=submit]', dialog
|
||||
fileInput: $ '[type=file]', dialog
|
||||
|
||||
if Conf['Remember QR Size']
|
||||
$.get 'QR.size', '', (item) ->
|
||||
nodes.com.style.cssText = item['QR.size']
|
||||
$.on nodes.com, 'mouseup', ->
|
||||
$.set 'QR.size', @style.cssText
|
||||
|
||||
# Allow only this board's supported files.
|
||||
mimeTypes = $('ul.rules > li').textContent.trim().match(/: (.+)/)[1].toLowerCase().replace /\w+/g, (type) ->
|
||||
switch type
|
||||
@ -896,7 +893,6 @@ QR =
|
||||
return if e.button isnt 0
|
||||
$.set 'QR Size', @style.cssText
|
||||
<% } %>
|
||||
|
||||
new QR.post true
|
||||
|
||||
QR.status()
|
||||
@ -907,6 +903,9 @@ QR =
|
||||
|
||||
$.add d.body, dialog
|
||||
|
||||
if Conf['Auto Hide QR']
|
||||
nodes.autohide.click()
|
||||
|
||||
# Create a custom event when the QR dialog is first initialized.
|
||||
# Use it to extend the QR's functionalities, or for XTRM RICE.
|
||||
$.event 'QRDialogCreation', null, dialog
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user