summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-06-28 15:31:43 +0200
committerYorhel <git@yorhel.nl>2019-06-28 15:31:45 +0200
commita91d48ac617b758a8310c28e91b73e23dae90963 (patch)
tree3613ca657a3c9e709ff35e0b94606fa9d83f95b1 /data
parent670c294ff6efeead61e215679224604848229c82 (diff)
VNBrowse: Add character filters
This is a bit experimental, not sure how the performance is going to be.
Diffstat (limited to 'data')
-rw-r--r--data/js/filter.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/data/js/filter.js b/data/js/filter.js
index 0188a710..5758aebe 100644
--- a/data/js/filter.js
+++ b/data/js/filter.js
@@ -107,7 +107,7 @@ function filLoad(lnk, serobj) {
f.submit();
}}),
tag('input', {type:'button', 'class':'submit', value: 'Reset', onclick:function () { serobj.value = ''; deSerialize(obj) } }),
- byId('pref_code') && lnk.id != 'rfilselect' ? tag('input', {type:'button', 'class':'submit', value: 'Save as default', onclick:saveDefault }) : null,
+ byId('pref_code') && lnk.id == 'filselect' ? tag('input', {type:'button', 'class':'submit', value: 'Save as default', onclick:saveDefault }) : null,
savenote
);
lnk.fil_obj = obj;
@@ -504,7 +504,7 @@ function filFTagInput(name, label, type) {
}
function filChars() {
- var ontraitpage = location.pathname.indexOf('/c/') < 0;
+ var ontraitpage = location.pathname.indexOf('/i') == 0;
return [
'Character filters',
@@ -626,3 +626,5 @@ if(byId('filselect'))
filLoad(byId('filselect'), byId('fil'));
if(byId('rfilselect'))
filLoad(byId('rfilselect'), byId('rfil'));
+if(byId('cfilselect'))
+ filLoad(byId('cfilselect'), byId('cfil'));