Remember the size of the QR on Firefox.
This commit is contained in:
parent
43debdd373
commit
f9cc25f0bf
@ -1569,7 +1569,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
dialog: function() {
|
dialog: function() {
|
||||||
var e, fileInput, input, mimeTypes, name, saved, spoiler, ta, thread, threads, _i, _j, _len, _len2, _ref, _ref2;
|
var e, fileInput, input, mimeTypes, name, spoiler, ta, thread, threads, _i, _j, _len, _len2, _ref, _ref2;
|
||||||
qr.el = ui.dialog('qr', 'top:0;right:0;', '\
|
qr.el = ui.dialog('qr', 'top:0;right:0;', '\
|
||||||
<div class=move>\
|
<div class=move>\
|
||||||
Quick Reply <input type=checkbox id=autohide title=Auto-hide>\
|
Quick Reply <input type=checkbox id=autohide title=Auto-hide>\
|
||||||
@ -1586,10 +1586,10 @@
|
|||||||
<div class=warning></div>\
|
<div class=warning></div>\
|
||||||
</form>');
|
</form>');
|
||||||
if (conf['Remember QR size'] && engine === 'gecko') {
|
if (conf['Remember QR size'] && engine === 'gecko') {
|
||||||
$.on((ta = qr.el.querySelector('textarea')), 'mouseup', function() {
|
$.on(ta = qr.el.querySelector('textarea'), 'mouseup', function() {
|
||||||
return $.set('qr.size', this.style.cssText);
|
return $.set('qr.size', this.style.cssText);
|
||||||
});
|
});
|
||||||
if (saved = $.get('qr.size')) ta.style.cssText = saved;
|
ta.style.cssText = $.get('qr.size', '');
|
||||||
}
|
}
|
||||||
mimeTypes = $('.rules').textContent.match(/: (.+) /)[1].toLowerCase().replace(/\w+/g, function(type) {
|
mimeTypes = $('.rules').textContent.match(/: (.+) /)[1].toLowerCase().replace(/\w+/g, function(type) {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
master
|
master
|
||||||
- desuwa
|
- desuwa
|
||||||
Remember the size of the QR on Firefox.
|
New option: remember the size of the QR on Firefox.
|
||||||
- Mayhem
|
- Mayhem
|
||||||
Increase Sauce linking possibilites:
|
Increase Sauce linking possibilites:
|
||||||
Thumbnails, full images, MD5 hashes.
|
Thumbnails, full images, MD5 hashes.
|
||||||
|
|||||||
@ -1180,10 +1180,9 @@ qr =
|
|||||||
</form>'
|
</form>'
|
||||||
|
|
||||||
if conf['Remember QR size'] and engine is 'gecko'
|
if conf['Remember QR size'] and engine is 'gecko'
|
||||||
$.on (ta = qr.el.querySelector 'textarea'), 'mouseup', ->
|
$.on ta = qr.el.querySelector('textarea'), 'mouseup', ->
|
||||||
$.set 'qr.size', @style.cssText
|
$.set 'qr.size', @style.cssText
|
||||||
if saved = $.get 'qr.size'
|
ta.style.cssText = $.get 'qr.size', ''
|
||||||
ta.style.cssText = saved
|
|
||||||
|
|
||||||
# Allow only this board's supported files.
|
# Allow only this board's supported files.
|
||||||
mimeTypes = $('.rules').textContent.match(/: (.+) /)[1].toLowerCase().replace /\w+/g, (type) ->
|
mimeTypes = $('.rules').textContent.match(/: (.+) /)[1].toLowerCase().replace /\w+/g, (type) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user