summaryrefslogtreecommitdiff
blob: 52433544f2fd1de620c342dba8a9527b3481af0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- system/www/groupware/javascript/oxFolder.js.old	2005-11-28 22:31:25.000000000 +0100
+++ system/www/groupware/javascript/oxFolder.js	2005-11-28 22:05:18.000000000 +0100
@@ -24,9 +24,9 @@
     menuSelection=ediv[2];
     selectedFolderID=ediv[3];
     selectedFolder=selectedElement;
-    if (selectedElement.id.indexOf("|txt") != -1)
+    if (selectedElement.id.indexOf("|txt") == -1)
        selectedFolder=document.getElementById(selectedElement.id+"|txt");
-    selectedFolderName=selectedFolder.firstChild.nodeValue;
+    selectedFolderName=(selectedFolder ? selectedFolder.firstChild.nodeValue : "unkown");
   }
   if (window.Event && !document.all) {
     x=e.pageX;