projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83cab23
)
Fix undefined variable warning
author
Michael M Slusarz
<slusarz@curecanti.org>
Tue, 27 Jul 2010 08:06:38 +0000
(
02:06
-0600)
committer
Michael M Slusarz
<slusarz@curecanti.org>
Tue, 27 Jul 2010 08:06:38 +0000
(
02:06
-0600)
horde/js/hordetree.js
patch
|
blob
|
history
diff --git
a/horde/js/hordetree.js
b/horde/js/hordetree.js
index
3b39cba
..
141125a
100644
(file)
--- a/
horde/js/hordetree.js
+++ b/
horde/js/hordetree.js
@@
-570,7
+570,8
@@
var Horde_Tree = Class.create({
_onClick: function(e)
{
- var elt = e.element();
+ var elt = e.element(),
+ id = elt.readAttribute('id');
if (elt.hasClassName('treeIcon')) {
elt = elt.up().previous();
@@
-578,8
+579,9
@@
var Horde_Tree = Class.create({
elt = elt.previous();
}
- if (elt.readAttribute('id').startsWith('nodeToggle_')) {
- this.toggle(elt.readAttribute('id').substr(11));
+ id = elt.readAttribute('id');
+ if (id && id.startsWith('nodeToggle_')) {
+ this.toggle(id.substr(11));
e.stop();
}
}