summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2011-01-04 17:30:57 +0100
committerYorhel <git@yorhel.nl>2011-01-04 17:30:57 +0100
commitd5d55cb04e95fdf9d5185e9f8516e906eeb03831 (patch)
treece9b50520ac3533ace8021ff8149c630dc173a23 /data
parenta48a7f5b0d4e65a70337d40f7df287810f27d547 (diff)
Added checkboxes to VN tagmod and implemented the overrule logic
This finalizes the moderation tag vote overrule. And Damnit, the logic behind saving the tags to the database isn't fun, I hope I haven't made any mistakes there.
Diffstat (limited to 'data')
-rw-r--r--data/script.js6
-rw-r--r--data/style.css1
2 files changed, 6 insertions, 1 deletions
diff --git a/data/script.js b/data/script.js
index a946a4f3..ff571630 100644
--- a/data/script.js
+++ b/data/script.js
@@ -1344,9 +1344,13 @@ function tglAdd() {
ddInit(spoil, 'tagmod', tglSpoilDD);
spoil.onclick = tglSpoilNext;
+ var ismod = byClass(byId('tagtable').parentNode, 'td', 'tc_myover').length;
+
byId('tagtable').appendChild(tag('tr', {id:'tgl_'+id},
tag('td', {'class':'tc_tagname'}, tag('a', {href:'/g'+id}, name)),
- vote, spoil,
+ vote,
+ ismod ? tag('td', {'class':'tc_myover'}, ' ') : null,
+ spoil,
tag('td', {'class':'tc_allvote'}, ' '),
tag('td', {'class':'tc_allspoil'}, ' '),
tag('td', {'class':'tc_allwho'}, '')
diff --git a/data/style.css b/data/style.css
index 86967cc0..f64596c0 100644
--- a/data/style.css
+++ b/data/style.css
@@ -965,6 +965,7 @@ table.tgl .tc_you { border-right: 1px solid $border$; border-left: 1px solid $bo
table.tgl .tc_others { border-left: 1px solid $border$; width: 150px; text-align: center }
table.tgl .tc_tagname { min-width: 200px; border-right: 1px solid $border$ }
table.tgl .tc_myvote { padding-left: 30px!important }
+table.tgl .tc_myover { padding: 0!important }
table.tgl .tc_myspoil { border-right: 1px solid $border$; padding-right: 30px!important; text-align: right; padding-left: 10px!important; cursor: pointer }
table.tgl .tc_allvote { padding-left: 30px!important; }
table.tgl .tc_allvote i { font-style: normal; font-size: 8px }