fix for bug #2653 - editing imap-folders is without function

renaming of imap folders was not working, because top_window().tree was used, instead of window.tree, as tree is in that case in the same window
This commit is contained in:
Ralf Becker 2010-06-12 08:05:18 +00:00
parent 870ba2203b
commit 5bbd63523e

View File

@ -950,8 +950,8 @@
#$hasChildren = false; #$hasChildren = false;
#if ($folderStatus['attributes'][0]=="\\HasChildren") $hasChildren=true; #if ($folderStatus['attributes'][0]=="\\HasChildren") $hasChildren=true;
} }
$response->addScript("egw_topWindow().tree.deleteItem('$_oldFolderName',0);"); $response->addScript("window.tree.deleteItem('$_oldFolderName',0);");
$response->addScript("egw_topWindow().tree.insertNewItem('$_parentFolder','$newFolderName','$folderName',onNodeSelect,'folderClosed.gif',0,0,'CHILD,CHECKED,SELECT,CALL');"); $response->addScript("window.tree.insertNewItem('$_parentFolder','$newFolderName','$folderName',onNodeSelect,'MailFolderPlain.png',0,0,'CHILD,CHECKED,SELECT,CALL');");
} }
} }
return $response->getXML(); return $response->getXML();