Fix dimp sidebar display on IE 8.
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 3 Aug 2010 01:40:07 +0000 (19:40 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 3 Aug 2010 01:40:07 +0000 (19:40 -0600)
imp/js/dimpbase.js

index d1a0616..57bf022 100644 (file)
@@ -2554,8 +2554,10 @@ var DimpBase = {
 
             // Make sure the sub<mbox> ul is created if necessary.
             if (!ob.s && ob.ch) {
-                li.insert({ after: Element('LI', { className: 'subfolders', id: submboxid }).insert(new Element('UL')).hide() });
-                li.insert({ after: tmp });
+                li.insert({ after: new Element('LI', { className: 'subfolders', id: submboxid }).insert(new Element('UL')).hide() });
+                if (tmp) {
+                    li.insert({ after: tmp });
+                }
             }
         }