summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-12-24 10:51:27 +0100
committerYorhel <git@yorhel.nl>2019-12-24 10:55:18 +0100
commit444990e4d924903d28b3f33c53f7df37c23b3f32 (patch)
tree824db6e0fbb0a5cc9f1a3069316916dcc7984e8c /data
parent0916ec2e23f7c15a484781894ee0edee728ecd13 (diff)
ulist: Add list management widget on VN pages
Minimal version. It reuses the LabelEdit and VoteEdit widgets, but doesn't allow setting a note or start/finish date at the moment. VN pages now have both v2rw.js and the old vndb.js; Those two scripts aren't meant to be used together on a single page, so I'm hoping this will be temporary. I removed the 'checkall' handling from vndb.js as that might conflict. It's only used on the old list pages anyway.
Diffstat (limited to 'data')
-rw-r--r--data/js/misc.js15
-rw-r--r--data/style.css8
2 files changed, 4 insertions, 19 deletions
diff --git a/data/js/misc.js b/data/js/misc.js
index e5b135d0..fd042524 100644
--- a/data/js/misc.js
+++ b/data/js/misc.js
@@ -248,21 +248,6 @@ if(byId('not') && byId('vns'))
})();
-// "check all" checkbox
-(function(){
- function set() {
- var l = byName('input');
- for(var i=0; i<l.length; i++)
- if(l[i].type == this.type && l[i].name == this.name && !hasClass(l[i], 'hidden'))
- l[i].checked = this.checked;
- }
- var l = byClass('input', 'checkall');
- for(var i=0; i<l.length; i++)
- if(l[i].type == 'checkbox')
- l[i].onclick = set;
-})();
-
-
// search tabs
(function(){
function click() {
diff --git a/data/style.css b/data/style.css
index d9736401..0d7266a0 100644
--- a/data/style.css
+++ b/data/style.css
@@ -418,10 +418,10 @@ div.vnimg p { text-align: center; padding: 0px; margin: 0; }
.vndesc h2 { margin: 5px 0 0 0; }
.vndesc p { padding: 0 0 0 5px; }
p#nsfw_hid { display: block; cursor: pointer; }
-div.vndetails table { float: left; width: 500px; }
-div.vndetails table td.key { width: 90px; }
-div.vndetails table dt { float: left; font-style: italic; }
-div.vndetails table dd { margin-left: 90px; }
+div.vndetails > table { float: left; width: 500px; }
+div.vndetails > table td.key { width: 90px; }
+div.vndetails > table dt { float: left; font-style: italic; }
+div.vndetails > table dd { margin-left: 90px; }
div.vndetails td.relations dt { float: none; font-style: normal; }
div.vndetails td.relations dd { margin-left: 15px; }
div.vndetails td.anime b { font-size: 10px; font-weight: normal; padding-right: 4px; }