summaryrefslogtreecommitdiff
path: root/static/f
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-03-21 13:50:21 +0100
committerYorhel <git@yorhel.nl>2009-03-21 13:54:22 +0100
commitfac70af55b0f6af8152209760d4f32affa525deb (patch)
tree316ea8c312d93a79d03b56b938c0b5bcdfbad2dd /static/f
parentcbfb086feab8d06e8184f7b8d809780404d091bf (diff)
Partly removed the category system
The categories are still available for viewing and editing to aid in the transition to the tagging system, but editing has been removed.
Diffstat (limited to 'static/f')
-rw-r--r--static/f/forms.js51
-rw-r--r--static/f/script.js2
2 files changed, 0 insertions, 53 deletions
diff --git a/static/f/forms.js b/static/f/forms.js
index e104b7e3..193b36d8 100644
--- a/static/f/forms.js
+++ b/static/f/forms.js
@@ -11,57 +11,6 @@ function shorten(v, l) {
- /************************\
- * C A T E G O R I E S *
- \************************/
-
-
-function catLoad() {
- var i;
- var cats=[];
- var ct = x('categories');
- var l = ct.value.split(',');
- for(i=0;i<l.length;i++)
- cats[l[i].substr(0,3)] = Math.floor(l[i].substr(3,1));
-
- l = x('jt_box_categories').getElementsByTagName('a');
- for(i=0;i<l.length;i++) {
- if(l[i].id.substr(0, 4) != 'cat_')
- continue;
- catSet(l[i].id.substr(4), cats[l[i].id.substr(4)]||0);
- l[i].onclick = function() {
- var c = this.id.substr(4);
- if(!cats[c]) cats[c] = 0;
- if(c.substr(0,1) == 'p' || c == 'gaa' || c == 'gab' || c.substr(0,1) == 'h' || c.substr(0,1) == 'l' || c.substr(0,1) == 't') {
- if(cats[c]++)
- cats[c] = 0;
- } else if(++cats[c] == 4)
- cats[c] = 0;
- catSet(c, cats[c]);
-
- // has to be ordered before serializing!
- var r;l=[];i=0;
- for(r in cats)
- l[i++] = r;
- l = l.sort();
- r='';
- for(i=0;i<l.length;i++)
- if(cats[l[i]] > 0)
- r+=(r?',':'')+l[i]+cats[l[i]];
- ct.value = r;
- return false;
- };
- }
-}
-
-function catSet(id, rnk) {
- x('cat_'+id).className = 'catlvl_'+rnk;
- x('b_'+id).innerHTML = rnk;
-}
-
-
-
-
/***********************************\
diff --git a/static/f/script.js b/static/f/script.js
index fa92382d..bdb2cd14 100644
--- a/static/f/script.js
+++ b/static/f/script.js
@@ -516,8 +516,6 @@ DOMLoad(function() {
}
// forms.js
- if(x('categories'))
- catLoad();
if(x('relations'))
relLoad();
if(x('jt_box_screenshots'))