diff options
author | Yorhel <git@yorhel.nl> | 2009-06-06 14:04:26 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2009-06-06 14:04:26 +0200 |
commit | 4349ffcf0596a4c0f90dd848d84de87cd37864d4 (patch) | |
tree | 3aaacacf97b2163257deb500c44aa8778e83efee /static/f | |
parent | 719bf4201192dbde43470c747eeef0855c676939 (diff) |
Removed some leftover code of the category filters on /v
Diffstat (limited to 'static/f')
-rw-r--r-- | static/f/script.js | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/static/f/script.js b/static/f/script.js index 8cc35118..b39ba11f 100644 --- a/static/f/script.js +++ b/static/f/script.js @@ -66,16 +66,9 @@ function searchInit() { return false; }); - if(!x('catselect')) + if(x('advoptions').className.indexOf('vnoptions') < 0) return; - var l = x('catselect').getElementsByTagName('li'); - for(i=0;i<l.length;i++) - if(l[i].id.substr(0,4) == 'cat_') - l[i].onclick = function() { - searchParse(1, this.innerHTML); - }; - - l = x('advoptions').getElementsByTagName('input'); + var l = x('advoptions').getElementsByTagName('input'); for(i=0;i<l.length;i++) if(l[i].id.substr(0,5) == 'lang_' || l[i].id.substr(0,5) == 'plat_') l[i].onclick = function() { @@ -112,14 +105,7 @@ function searchParse(add, term) { } q = q.toLowerCase(); - var l = x('catselect').getElementsByTagName('li'); - for(i=0;i<l.length;i++) - if(l[i].id.substr(0,4) == 'cat_') { - var cat = l[i].innerHTML.toLowerCase(); - l[i].className = q.indexOf('-'+cat) >= 0 ? 'exc' : q.indexOf(cat) >= 0 ? 'inc' : ''; - } - - l = x('advoptions').getElementsByTagName('input'); + var l = x('advoptions').getElementsByTagName('input'); for(i=0;i<l.length;i++) if(l[i].id.substr(0,5) == 'lang_' || l[i].id.substr(0,5) == 'plat_') l[i].checked = q.indexOf(l[i].parentNode.getElementsByTagName('acronym')[0].title.toLowerCase()) >= 0 ? true : false; |