Pman.Tab.MTrackMilestone.bjs
authorAlan Knowles <alan@roojs.com>
Thu, 14 Jan 2021 07:22:12 +0000 (15:22 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 14 Jan 2021 07:22:12 +0000 (15:22 +0800)
Pman.Tab.MTrackMilestone.js

Pman.Tab.MTrackMilestone.bjs
Pman.Tab.MTrackMilestone.js

index 75e68a1..d98169c 100644 (file)
@@ -39,9 +39,9 @@
    "listeners" : {
     "|activate" : "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
    },
+   "background" : true,
    "region" : "center",
    "fitToframe" : true,
-   "background" : true,
    "title" : "Milestones",
    "xtype" : "GridPanel",
    "fitContainer" : true,
@@ -50,7 +50,7 @@
    "items" : [
     {
      "listeners" : {
-      "|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), function() {\n        _this.grid.footer.onClick('first');\n    }); \n}\n",
       "|render" : "function() \n{\n    _this.grid = this; \n     _this.dialog = Pman.Dialog.MTrackMilestone;\n    if (_this.panel.active) {\n       this.footer.onClick('first');\n    }\n}"
      },
      "autoExpandColumn" : "description",
@@ -71,8 +71,8 @@
        "items" : [
         {
          "$ url" : "baseURL + '/Roo/mtrack_milestone.php'",
-         "xtype" : "HttpProxy",
          "method" : "GET",
+         "xtype" : "HttpProxy",
          "$ xns" : "Roo.data",
          "* prop" : "proxy"
         },
            "items" : [
             {
              "$ url" : "baseURL + '/Roo/Projects.php'",
-             "xtype" : "HttpProxy",
              "method" : "GET",
+             "xtype" : "HttpProxy",
              "$ xns" : "Roo.data",
              "* prop" : "proxy"
             },
       },
       {
        "xtype" : "ColumnModel",
-       "header" : "#ref",
        "width" : 50,
+       "header" : "#ref",
        "$ renderer" : "function(v) { return String.format('{0}', v); }",
        "$ xns" : "Roo.grid",
        "* prop" : "colModel[]",
       },
       {
        "xtype" : "ColumnModel",
-       "width" : 50,
        "header" : "#Tickets",
+       "width" : 50,
        "$ renderer" : "function(v) { return String.format('{0}', v); }",
        "$ xns" : "Roo.grid",
        "* prop" : "colModel[]",
       },
       {
        "xtype" : "ColumnModel",
-       "header" : "Name",
        "width" : 200,
+       "header" : "Name",
        "$ renderer" : "function(v) { return String.format('{0}', v); }",
        "$ xns" : "Roo.grid",
        "* prop" : "colModel[]",
       },
       {
        "xtype" : "ColumnModel",
-       "header" : "Description",
        "width" : 200,
+       "header" : "Description",
        "$ renderer" : "function(v) { return String.format('{0}', v); }",
        "$ xns" : "Roo.grid",
        "* prop" : "colModel[]",
       },
       {
        "xtype" : "ColumnModel",
-       "header" : "Duedate",
        "width" : 75,
+       "header" : "Duedate",
        "$ renderer" : "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
        "$ xns" : "Roo.grid",
        "* prop" : "colModel[]",
       },
       {
        "xtype" : "ColumnModel",
-       "width" : 75,
        "header" : "On-hold",
+       "width" : 75,
        "$ renderer" : "function(v) { return String.format('{0}', v ? 'HOLD' : '' ); }",
        "$ xns" : "Roo.grid",
        "* prop" : "colModel[]",
       },
       {
        "xtype" : "ColumnModel",
-       "header" : "Completed",
        "width" : 75,
+       "header" : "Completed",
        "$ renderer" : "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
        "$ xns" : "Roo.grid",
        "* prop" : "colModel[]",
index 7ee721c..f2589b1 100644 (file)
@@ -80,7 +80,7 @@ Pman.Tab.MTrackMilestone = new Roo.XComponent({
       },
      rowdblclick : function (_self, rowIndex, e)
       {
-          if (!_this.dialog) return;
+          if (!_this.dialog) { return; }
           _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {
               _this.grid.footer.onClick('first');
           }); 
@@ -193,7 +193,7 @@ Pman.Tab.MTrackMilestone = new Roo.XComponent({
         proxy : {
          xtype : 'HttpProxy',
          method : 'GET',
-         url : baseURL + '/Roo/core_project',
+         url : baseURL + '/Roo/Projects.php',
          xns : Roo.data,
          '|xns' : 'Roo.data'
         },