Autohide Persistent QR.

This commit is contained in:
Zixaphir 2013-04-14 16:50:40 -07:00
parent c3cd4116bc
commit d77f9d0d8e
6 changed files with 15 additions and 31 deletions

View File

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

View File

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

Binary file not shown.

View File

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

View File

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