diff options
author | Yorhel <git@yorhel.nl> | 2015-07-21 03:15:57 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2015-07-21 03:15:57 +0200 |
commit | 6f15f1d2d1f23983e0262e8e9565356dc9a2c4e7 (patch) | |
tree | 8e98469103f1e6f55a96df808310cb8cc6cb54e7 /data | |
parent | 0032d62652c6168316fd9429d17604b61a812598 (diff) |
Add profile option for default visible tag categories on VN pages
The name of the profile setting isn't very clear. Not sure what to do
with it.
Diffstat (limited to 'data')
-rw-r--r-- | data/global.pl | 1 | ||||
-rw-r--r-- | data/lang.txt | 12 | ||||
-rw-r--r-- | data/script.js | 6 |
3 files changed, 15 insertions, 4 deletions
diff --git a/data/global.pl b/data/global.pl index 4aa2f200..ef368d61 100644 --- a/data/global.pl +++ b/data/global.pl @@ -37,6 +37,7 @@ our %S = (%S, # bit flags (Flag 8 was used for staffedit) permissions => {qw| board 1 boardmod 2 edit 4 staffedit 4 tag 16 dbmod 32 tagmod 64 usermod 128 affiliate 256 |}, default_perm => 1+4+16, # Keep synchronised with the default value of users.perm + default_tags_cat=> 'cont,tech', languages => [qw|ar ca cs da de en es fi fr he hu id it ja ko nl no pl pt-br pt-pt ro ru sk sv tr uk vi zh|], producer_types => [qw|co in ng|], discussion_boards => [qw|an db ge v p u|], # <- note that some properties of these boards are hard-coded diff --git a/data/lang.txt b/data/lang.txt index 9626176d..bb4a1a13 100644 --- a/data/lang.txt +++ b/data/lang.txt @@ -12556,6 +12556,18 @@ tr*: uk*: it*: +:_usere_tagcats +en : Tag categories +ru*: +cs*: +hu*: +nl*: +de*: +es*: +tr*: +uk*: +it*: + :_usere_skin en : Preferred skin ru : Предпочитаемая шкурка diff --git a/data/script.js b/data/script.js index a1e74608..f3e97985 100644 --- a/data/script.js +++ b/data/script.js @@ -495,7 +495,7 @@ function tvsInit() { var l = byName(byId('tagops'), 'a'); for(var i=0;i<l.length; i++) l[i].onclick = tvsClick; - tvsSet(getCookie('tagspoil'), hasClass(l[6], 'tsel'), (getCookie('tagcat')||'cont,tech').split(',')); + tvsSet(getCookie('tagspoil')); } function tvsClick() { @@ -505,8 +505,7 @@ function tvsClick() { if(l[i] == this) { if(i < 3) { /* categories */ setClass(l[i], 'tsel', !hasClass(l[i], 'tsel')); - var c = tvsSet(); - setCookie('tagcat', c.length ? c.join(',') : '-'); + tvsSet(); } else if(i < 6) { /* spoiler level */ tvsSet(i-3, null); setCookie('tagspoil', i-3); @@ -556,7 +555,6 @@ function tvsSet(lvl, lim, cats) { } else setClass(l[i], 'hidden', true); } - return cat; } tvsInit(); |