Pman.Tab.AdminContactsGroup.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 17 Jan 2011 03:11:10 +0000 (11:11 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 17 Jan 2011 03:11:10 +0000 (11:11 +0800)
Pman.Tab.AdminContactsGroup.js

index 8d5b98e..62aa248 100644 (file)
@@ -62,7 +62,11 @@ Pman.Tab.AdminContactsGroup = new Roo.util.Observable({
                     rowdblclick : function (_self, rowIndex, e)
                     {
                         if (!_this.dialog) return;
-                        _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {
+                        var s = his.getDataSource().getAt(rowIndex);
+                        if (s.data.id < 1 ) {
+                            return;
+                        }
+                        _this.dialog.show( s.data, function() {
                             _this.grid.footer.onClick('first');
                         }); 
                     }