summaryrefslogtreecommitdiff
path: root/data/js
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2015-10-03 10:29:17 +0200
committerYorhel <git@yorhel.nl>2015-10-03 10:29:17 +0200
commitf81d7164cffa5067b25b941f1ab6498a8eb5bfb0 (patch)
tree7750829f2fa7d4561685385702c5df3f02b33f5c /data/js
parentb75eff0f2cce2050c98ec946aac28b390020fdc5 (diff)
js: Minor fixes
Diffstat (limited to 'data/js')
-rw-r--r--data/js/vnscr.js2
-rw-r--r--data/js/vnstaff.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/data/js/vnscr.js b/data/js/vnscr.js
index 21b1ba74..acde013d 100644
--- a/data/js/vnscr.js
+++ b/data/js/vnscr.js
@@ -199,5 +199,5 @@ function upload() {
return false;
}
-if(byId('jt_box_vn_scr'))
+if(byId('jt_box_vn_scr') && byId('screenshots'))
init();
diff --git a/data/js/vnstaff.js b/data/js/vnstaff.js
index e707d7f2..2a9990d1 100644
--- a/data/js/vnstaff.js
+++ b/data/js/vnstaff.js
@@ -4,7 +4,7 @@
window.vnsStaffData = {};
function vnsLoad() {
- window.vnsStaffData = jsonParse(getText(byId('staffdata')||{})) || {};
+ window.vnsStaffData = jsonParse(getText(byId('staffdata'))) || {};
var credits = jsonParse(byId('credits').value) || [];
for(var i = 0; i < credits.length; i++) {
var aid = credits[i].aid;