projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc2962a
)
imp_select_view isn't always present on the page
author
Michael J. Rubinsky
<mrubinsk@horde.org>
Sun, 20 Dec 2009 17:29:18 +0000
(12:29 -0500)
committer
Michael J. Rubinsky
<mrubinsk@horde.org>
Sun, 20 Dec 2009 17:29:18 +0000
(12:29 -0500)
imp/js/login.js
patch
|
blob
|
history
diff --git
a/imp/js/login.js
b/imp/js/login.js
index
a5352af
..
03198e9
100644
(file)
--- a/
imp/js/login.js
+++ b/
imp/js/login.js
@@
-23,8
+23,11
@@
var ImpLogin = {
onDomLoad: function()
{
/* Activate dynamic view. */
- var s = $('imp_select_view'),
- o = s.down('option[value=dimp]').show();
+ var s = $('imp_select_view');
+ if (!s) {
+ return;
+ }
+ o = s.down('option[value=dimp]').show();
if (this.dimp_sel) {
s.selectedIndex = o.index;
}