Pman.Tab.AdminProjectManager.bjs
authorAlan Knowles <alan@akbkhome.com>
Mon, 24 Oct 2011 03:22:16 +0000 (11:22 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 24 Oct 2011 03:22:16 +0000 (11:22 +0800)
Pman.Tab.AdminProjectManager.bjs
Pman.Tab.AdminProjectManager.js
Pman.Tab.AdminProjectManager.js

Pman.Tab.AdminProjectManager.bjs
Pman.Tab.AdminProjectManager.js

index a503dba..c4e8b10 100644 (file)
@@ -1,5 +1,5 @@
 {
-    "id": "roo-file-40",
+    "id": "roo-file-95",
     "name": "Pman.Tab.AdminProjectManager",
     "parent": "Pman.Tab.Admin",
     "title": "Pman.Tab.AdminProjectManager",
                                 {
                                     "listeners": {
                                         "|render": "function() \n{\n    _this.grid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.panel.active) {\n       this.footer.onClick('first');\n    }\n}",
-                                        "|rowdblclick": "function (_self, rowIndex, e)\n{\n    if (!_this.dialog) return;\n    _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {\n        _this.grid.footer.onClick('first');\n    }); \n}\n"
+                                        "|rowdblclick": "function (_self, rowIndex, e)\n{\n    if (!_this.dialog) return;\n    _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {\n        _this.grid.footer.onClick('first');\n    }); \n}\n"
                                     },
-                                    "filter": "P,U",
                                     "*prop": "grid",
                                     "autoExpandColumn": "name",
+                                    "filter": "P,U",
                                     "loadMask": true,
                                     "xtype": "Grid",
                                     "|getTypes": "function() {\n    return [\n        [  'U' , \"Project (Unconfirmed)\" ],\n        [  'P' , \"Project\" ],\n        [  'C' , \"Project (Closed)\" ],\n        [  'N' , \"Non-Project\" ],\n        [  'X' , \"Non-Project (Closed)\" ]\n\n    ];\n}\n",
index 81f4816..be927f3 100644 (file)
@@ -8,9 +8,9 @@
 Pman.on('beforeload', function()
 {
     Pman.register({
+        part :  ["Admin","ProjectManager"],
         modKey : '002-Pman.Tab.AdminProjectManager',
         module : Pman.Tab.AdminProjectManager,
-        moduleName : 'Pman.Tab.AdminProjectManager',
         region : 'center',
         parent : Pman.Tab.Admin,
         name : "Pman.Tab.AdminProjectManager",
@@ -77,13 +77,13 @@ Pman.Tab.AdminProjectManager = new Roo.util.Observable({
                                 rowdblclick : function (_self, rowIndex, e)
                                 {
                                     if (!_this.dialog) return;
-                                    _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {
+                                    _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {
                                         _this.grid.footer.onClick('first');
                                     }); 
                                 }
                             },
-                            filter : 'P,U',
                             autoExpandColumn : 'name',
+                            filter : 'P,U',
                             loadMask : true,
                             getTypes : function() {
                                 return [
@@ -513,8 +513,8 @@ Pman.Tab.AdminProjectManager = new Roo.util.Observable({
                                 xtype: 'PagingToolbar',
                                 xns: Roo,
                                 displayInfo : true,
-                                displayMsg : 'Displaying Projects {0} - {1} of {2}',
-                                emptyMsg : 'No Projects found',
+                                displayMsg : "Displaying Projects {0} - {1} of {2}",
+                                emptyMsg : "No Projects found",
                                 pageSize : 25
                             },
                             toolbar : {