Pman.Tab.PersonList.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 16 Dec 2010 03:06:32 +0000 (11:06 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 16 Dec 2010 03:06:32 +0000 (11:06 +0800)
Pman.Tab.PersonList.js

index 56f63a4..f091698 100644 (file)
@@ -482,8 +482,17 @@ Pman.Tab.PersonList.prototype = {
                
                
                 qtip: "Switch to Selected User",
-                handler : function () { 
-                
+                listeners : {
+                    click : function () { 
+                        var s = grid.getSelectionModel().getSelections();
+                        if (s.length != 1)  {
+                            Ext.MessageBox.alert("Error",  "Select a Person");
+                            return;
+                        }
+                    
+                    }
+                }
+            
                      
             },