Remember the flag selection. Close #1270

This commit is contained in:
Mayhem 2013-09-13 17:03:42 +02:00
parent 1208e96233
commit f606b5fbd5
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,5 @@
- Added support for the flag selector on /pol/.
## 3.11.0 - *2013-09-06*
- **New feature**: `Color User IDs`, enabled by default

View File

@ -221,6 +221,7 @@ QR =
name: post.name
email: if /^sage$/.test post.email then persona.email else post.email
sub: if Conf['Remember Subject'] then post.sub else undefined
flag: post.flag
$.set 'QR.persona', persona
cooldown:
@ -504,6 +505,12 @@ QR =
if prev then prev.sub else persona.sub
else
''
if QR.nodes.flag
@flag = if prev
prev.flag
else
persona.flag
@load() if QR.selected is @ # load persona
@select() if select
@unlock()