summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-10-07 18:04:44 +0200
committerYorhel <git@yorhel.nl>2009-10-07 18:04:44 +0200
commit46a046e88c0059770fcffcf64d43ddbdbeb4fcc6 (patch)
treefe545d870c884b8b5b25e2e98102db66488b5d57 /data
parent9271d61fd217d0848f37e85acc49df65d3f01772 (diff)
JS: Removed x()
Diffstat (limited to 'data')
-rw-r--r--data/script.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/data/script.js b/data/script.js
index 544bd304..27139c69 100644
--- a/data/script.js
+++ b/data/script.js
@@ -54,9 +54,6 @@ function getCookie(n) {
return null;
}
-function x(y) { // deprecated
- return document.getElementById(y)
-}
function byId(n) {
return document.getElementById(n)
}
@@ -1151,7 +1148,7 @@ function scrSerialize() {
byId('screenshots').value = r.join(' ');
}
-if(x('jt_box_vn_scr'))
+if(byId('jt_box_vn_scr'))
scrLoad();
@@ -1342,7 +1339,7 @@ function rvnLoad() {
}
function rvnAdd(id, title) {
- x('vn_tbl').appendChild(tag('tr', {id:'rvn_'+id, rvn_id:id},
+ byId('vn_tbl').appendChild(tag('tr', {id:'rvn_'+id, rvn_id:id},
tag('td', {'class':'tc_title'}, 'v'+id+':', tag('a', {href:'/v'+id}, shorten(title, 40))),
tag('td', {'class':'tc_rm'}, tag('a', {href:'#', onclick:rvnDel}, mt('_redit_form_vn_remove')))
));
@@ -1444,7 +1441,7 @@ function rprLoad() {
}
function rprAdd(id, name) {
- x('producer_tbl').appendChild(tag('tr', {id:'rpr_'+id, rpr_id:id},
+ byId('producer_tbl').appendChild(tag('tr', {id:'rpr_'+id, rpr_id:id},
tag('td', {'class':'tc_name'}, 'p'+id+':', tag('a', {href:'/p'+id}, shorten(name, 40))),
tag('td', {'class':'tc_rm'}, tag('a', {href:'#', onclick:rprDel}, mt('_redit_form_prod_remove')))
));