templates/view.html
[Pman.MTrack] / Pman.Tab.MTrackMilestone.bjs
index 850c24b..75e68a1 100644 (file)
@@ -25,7 +25,8 @@
   "e15e216fc1c639f787b1231ecdfa1bf8" : "HEAD",
   "f2a6c498fb90ee345d997f888fce3b18" : "Delete",
   "49ee3087348e8d44e1feda1917443987" : "Name",
-  "b5a7adde1af5c87d7fd797b6245c2a39" : "Description"
+  "b5a7adde1af5c87d7fd797b6245c2a39" : "Description",
+  "db478325306f02298b2980f40223a413" : "#ref"
  },
  "named_strings" : {
   "project_id_name_emptyText" : "24f27bda5dd2c488aa9bc7700ba98c34",
@@ -52,7 +53,7 @@
       "|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" : "name",
+     "autoExpandColumn" : "description",
      "xtype" : "Grid",
      "loadMask" : true,
      "$ xns" : "Roo.grid",
         {
          "listeners" : {
           "render" : "function (_self)\n{\n   _this.projsel = _self;\n}",
-          "beforeselect" : "function (combo, record, index)\n{\n  (function() { _this.grid.onClick('first')}).defer(100);\n}"
+          "beforeselect" : "function (combo, record, index)\n{\n  (function() { _this.grid.footer.onClick('first')}).defer(100);\n}"
          },
          "listWidth" : 400,
          "triggerAction" : "all",
         },
         {
          "listeners" : {
-          "|click" : "function()\n{\n    var s = _this.grid.getSelectionModel().getSelections();\n    if (!s.length || (s.length > 1))  {\n        Roo.MessageBox.alert(\"Error\", s.length ? \"Select only one Row\" : \"Select a Row\");\n        return;\n    }\n    if (!_this.dialog) return;\n    _this.dialog.show(s[0].data, function() {\n        _this.grid.footer.onClick('first');\n    }); \n    \n}\n"
+          "|click" : "function()\n{\n    var s = _this.grid.getSelectionModel().getSelections();\n    if (!s.length || (s.length > 1))  {\n        Roo.MessageBox.alert(\"Error\", s.length ? \"Select only one Row\" : \"Select a Row\");\n        return;\n    }\n      \n    Pman.Dialog.MTrackMilestoneMerge.show(s[0].data, function() {\n        Pman.genericDelete(_this, 'mtrack_milestone'); \n    }); \n    \n} \n"
          },
          "text" : "Merge With another Milestone",
          "xtype" : "Button",
         }
        ]
       },
+      {
+       "xtype" : "ColumnModel",
+       "header" : "#ref",
+       "width" : 50,
+       "$ renderer" : "function(v) { return String.format('{0}', v); }",
+       "$ xns" : "Roo.grid",
+       "* prop" : "colModel[]",
+       "dataIndex" : "id"
+      },
       {
        "xtype" : "ColumnModel",
        "sortable" : true,