diff options
author | Yorhel <git@yorhel.nl> | 2019-06-26 11:19:52 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2019-06-26 11:34:30 +0200 |
commit | 4d67310a2cb148925b6f8ba96a4fade124e83854 (patch) | |
tree | 824fc08cafa2812b126049c5ff85cd932aaea310 /data | |
parent | 940c8dc80bcfbd4dea0f286032b00873e31daac4 (diff) |
Tags: Split "meta" field into "searchable" and "applicable"
As discussed in https://vndb.org/t12507
TODO:
- Same conversion for traits
- Re-add mod ability to delete all votes for a particular tag?
Diffstat (limited to 'data')
-rw-r--r-- | data/js/filter.js | 8 | ||||
-rw-r--r-- | data/js/vntagmod.js | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/data/js/filter.js b/data/js/filter.js index 951e379f..0188a710 100644 --- a/data/js/filter.js +++ b/data/js/filter.js @@ -473,13 +473,13 @@ function filFTagInput(name, label, type) { tr.appendChild(tag('td', type=='trait' && g ? tag('b', {'class':'grayedout'}, g+' / ') : null, shorten(item.firstChild.nodeValue, 40), - item.getAttribute('meta') == 'yes' ? tag('b', {'class': 'grayedout'}, ' meta') : null, - item.getAttribute('state') == 0 ? tag('b', {'class': 'grayedout'}, ' awaiting moderation') : null + item.getAttribute('searchable') == 'no' ? tag('b', {'class': 'grayedout'}, ' not searchable') : null, + item.getAttribute('state') == 0 ? tag('b', {'class': 'grayedout'}, ' awaiting moderation') : null )); }, function(item, obj) { - if(item.getAttribute('meta') == 'yes') - alert('Can\'t use meta '+type+'s here!'); + if(item.getAttribute('searchable') == 'no') + alert('Can\'t use unsearchable '+type+'s here!'); else { obj.parentNode.fil_val = null; addtag(byName(obj.parentNode, 'ul')[0], item.getAttribute('id'), item.firstChild.nodeValue, item.getAttribute('groupname')); diff --git a/data/js/vntagmod.js b/data/js/vntagmod.js index 9a857fba..69c579fd 100644 --- a/data/js/vntagmod.js +++ b/data/js/vntagmod.js @@ -8,8 +8,8 @@ function tglLoad() { dsInit(byId('tagmod_tag'), '/xml/tags.xml?q=', function(item, tr) { tr.appendChild(tag('td', shorten(item.firstChild.nodeValue, 40), - item.getAttribute('meta') == 'yes' ? tag('b', {'class':'grayedout'}, ' meta') : - item.getAttribute('state') == 0 ? tag('b', {'class':'grayedout'}, ' awaiting moderation') : null + item.getAttribute('applicable') == 'no' ? tag('b', {'class':'grayedout'}, ' not applicable') : + item.getAttribute('state') == 0 ? tag('b', {'class':'grayedout'}, ' awaiting moderation') : null )); }, function(item) { return item.firstChild.nodeValue; @@ -109,8 +109,8 @@ function tglAdd() { var items = hr.responseXML.getElementsByTagName('item'); if(items.length < 1) return alert('Item not found!'); - if(items[0].getAttribute('meta') == 'yes') - return alert('Can\'t use meta tags here!'); + if(items[0].getAttribute('applicable') == 'no') + return alert('This tag may not be applied to visual novels.'); var name = items[0].firstChild.nodeValue; var id = items[0].getAttribute('id'); |