summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-09-13 17:09:02 +0000
committeralecpl <alec@alec.pl>2008-09-13 17:09:02 +0000
commit4c70d1f9a2162a6ca41a4f604dc3466ef22afa16 (patch)
treeb9a9ee3b65d4c9efee41d250cfde27437b1c1cf5
parentc0249205b236fd2ce772b51d1087e080b35ced7f (diff)
-#1485349: fixed getElementById wrapper for IE
-rw-r--r--program/js/common.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/js/common.js b/program/js/common.js
index 1a5c0519c..be98feb28 100644
--- a/program/js/common.js
+++ b/program/js/common.js
@@ -642,7 +642,7 @@ if (bw.ie)
var i = 0;
var o = document._getElementById(id);
- if (o.id != id)
+ if (!o || o.id != id)
while ((o = document.all[i]) && o.id != id)
i++;