Add Remember QR Size back in. Close #1021.

This commit is contained in:
Nicolas Stepien 2013-04-14 00:49:51 +02:00
parent 06d77102a4
commit c000d3db2a
3 changed files with 14 additions and 1 deletions

View File

@ -1,5 +1,6 @@
- `Scroll to Last Read Post` is now optional, enabled by default.
- The QR won't auto-hide when auto-hide is enabled and one of its input is focused. Doesn't work on Firefox.
- Added the `Remember QR Size` setting back in, disabled by default. Only on Firefox.
- Fix QR remembering the file spoiler state when it shouldn't.
- Fix QR cooldown in Opera.
@ -14,7 +15,7 @@
### 3.0.2 - *2013-04-09*
- Added a setting in the Header's menu to move it at the bottom of the screen.
- Added Cooldown setting back in.
- Added the `Cooldown` setting back in.
- Fixed the Header going above posts when following quotelinks for example.
- Fixed a bug where dead quotelinks would disappear.

View File

@ -50,6 +50,9 @@ Config =
'Persistent QR': [false, 'The Quick reply won\'t disappear after posting.']
'Auto-Hide QR': [false, 'Automatically hide the quick reply when posting.']
'Open Post in New Tab': [true, 'Open new threads or replies to a thread from the index in a new tab.']
<% if (type === 'userscript') { %>
'Remember QR Size': [false, 'Remember the size of the Quick reply.']
<% } %>
'Remember Subject': [false, 'Remember the subject field, instead of resetting after posting.']
'Remember Spoiler': [false, 'Remember the spoiler state, instead of resetting after posting.']
'Hide Original Post Form': [true, 'Hide the normal post form.']

View File

@ -830,6 +830,15 @@ QR =
$.on nodes[name], 'input', -> QR.selected.save @
$.on nodes.thread, 'change', -> QR.selected.save @
<% if (type === 'userscript') { %>
if Conf['Remember QR Size']
$.get 'QR Size', '', (item) ->
nodes.com.style.cssText = item['QR Size']
$.on nodes.com, 'mouseup', (e) ->
return if e.button isnt 0
$.set 'QR Size', @style.cssText
<% } %>
new QR.post true
QR.status()