Pman.Tab.AdminContacts.js
authorAlan Knowles <alan@akbkhome.com>
Fri, 14 Jan 2011 07:51:32 +0000 (15:51 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 14 Jan 2011 07:51:32 +0000 (15:51 +0800)
Pman.Tab.AdminContacts.js

index aee18cb..65fce62 100644 (file)
@@ -105,6 +105,10 @@ Pman.Tab.AdminContacts = new Roo.util.Observable({
                             
                             
                             o.params.active = _this.activeButton.pressed ? 0 : 1;
+                            if (!Pman.Tab.AdminContactsGroup) { 
+                                return false;
+                            }
+                            
                             
                             if (Pman.Tab.AdminContactsGroup && Pman.Tab.AdminContactsGroup.grid) {
                                 var tms = Pman.Tab.ContactsGroup.grid.getLeftSelections();