Author: mimir
Date: 2007-04-24 09:10:43 +0000 (Tue, 24 Apr 2007)
New Revision: 22500

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22500

Log:
there's a better way to find out if there are any children


rafal


Modified:
   branches/SAMBA_4_0/webapps/swat/source/class/swat/module/netmgr/Gui.js


Changeset:
Modified: branches/SAMBA_4_0/webapps/swat/source/class/swat/module/netmgr/Gui.js
===================================================================
--- branches/SAMBA_4_0/webapps/swat/source/class/swat/module/netmgr/Gui.js      
2007-04-24 08:36:41 UTC (rev 22499)
+++ branches/SAMBA_4_0/webapps/swat/source/class/swat/module/netmgr/Gui.js      
2007-04-24 09:10:43 UTC (rev 22500)
@@ -215,8 +215,8 @@
 
 qx.Proto.openUserManager = function(module, domainName)
 {
-  // Remove existing panel if there is any
-  if (this._panel.getChildrenLength() > 0)
+  // Remove existing panel if there is any - there can be only one at the time
+  if (this._panel.hasChildren())
   {
     this._panel.removeAll();
   }

Reply via email to