php warnings
[Pman.MTrack] / Pman.Dialog.MTrackMilestoneMerge.bjs
1 {
2  "name" : " Pman.Dialog.MTrackMilestoneMerge",
3  "parent" : "",
4  "title" : "",
5  "path" : "/home/alan/gitlive/Pman.MTrack/ Pman.Dialog.MTrackMilestoneMerge.bjs",
6  "permname" : "",
7  "modOrder" : "001",
8  "strings" : {
9   "42a82ba0b10c97ac4db8b51e50a54c93" : "Merge Milestone",
10   "03e956f1dca2b4d525df03cb1899cb6f" : "Merge with",
11   "ea4788705e6873b424c65e91c2846b19" : "Cancel",
12   "e0aa021e21dddbd6d8cecec71e9cf564" : "OK"
13  },
14  "named_strings" : {
15   "merge_display_name_fieldLabel" : "03e956f1dca2b4d525df03cb1899cb6f"
16  },
17  "items" : [
18   {
19    "listeners" : {
20     "show" : "function (_self)\n{\n    _this.merge.focus();\n}"
21    },
22    "modal" : true,
23    "collapsible" : false,
24    "background" : true,
25    "title" : "Merge Milestone",
26    "xtype" : "LayoutDialog",
27    "width" : 400,
28    "$ xns" : "Roo",
29    "closable" : false,
30    "resizable" : false,
31    "height" : 150,
32    "items" : [
33     {
34      "xtype" : "LayoutRegion",
35      "$ xns" : "Roo",
36      "titlebar" : false,
37      "* prop" : "center"
38     },
39     {
40      "fitToFrame" : true,
41      "background" : true,
42      "region" : "center",
43      "xtype" : "ContentPanel",
44      "$ xns" : "Roo",
45      "items" : [
46       {
47        "listeners" : {
48         "|actioncomplete" : "function (_self, action)\n{\n  if (action.type == 'setdata') {\n\n       return;\n    }\n    if (action.type == 'load') {\n        _this.dialog.el.unmask();\n        return;\n    }\n    if (action.type == 'submit' ) {\n        _this.dialog.el.unmask();\n        _this.dialog.hide();\n\n        if (_this.callback) {\n           _this.callback.call(_this, action.result.data);\n        }\n        _this.form.reset();\n    }\n}\n",
49         "|rendered" : "function (form)\n{\n   _this.form = form;\n}"
50        },
51        "$ url" : "baseURL + '/Roo/mtrack_milestone'",
52        "xtype" : "Form",
53        "method" : "POST",
54        "style" : "margin: 5px",
55        "$ xns" : "Roo.form",
56        "items" : [
57         {
58          "listeners" : {
59           "render" : "function (_self)\n{\n    _this.merge = this;\n}"
60          },
61          "alwaysQuery" : true,
62          "Number pageSize" : 50,
63          "Boolean allowBlank" : false,
64          "triggerAction" : "all",
65          "fieldLabel" : "Merge with",
66          "forceSelection" : true,
67          "selectOnFocus" : true,
68          "xtype" : "ComboBox",
69          "minChars" : 2,
70          "hiddenName" : "_merge_id",
71          "displayField" : "name",
72          "valueField" : "id",
73          "editable" : true,
74          "Number listWidth" : 250,
75          "width" : 250,
76          "$ xns" : "Roo.form",
77          "name" : "merge_display_name",
78          "queryParam" : "query[search]",
79          "tpl" : "<div class=\"x-grid-cell-text x-btn button\">#{id} - <b>{name}</b> - {description} </div>",
80          "items" : [
81           {
82            "listeners" : {
83             "|beforeload" : "function (_self, o){\n    o.params = o.params || {};\n    o.params.project_id  = _this.form.findField('project_id').getValue();\n    o.params['!id'] = _this.data.id;\n    \n}\n"
84            },
85            "xtype" : "Store",
86            "remoteSort" : true,
87            "$ xns" : "Roo.data",
88            "$ sortInfo" : "{ direction : 'ASC', field: 'id' }",
89            "* prop" : "store",
90            "items" : [
91             {
92              "$ url" : "baseURL + '/Roo/mtrack_milestone.php'",
93              "xtype" : "HttpProxy",
94              "method" : "GET",
95              "$ xns" : "Roo.data",
96              "* prop" : "proxy"
97             },
98             {
99              "id" : "id",
100              "root" : "data",
101              "xtype" : "JsonReader",
102              "$ xns" : "Roo.data",
103              "* prop" : "reader",
104              "totalProperty" : "total"
105             }
106            ]
107           }
108          ]
109         },
110         {
111          "xtype" : "Hidden",
112          "$ xns" : "Roo.form",
113          "name" : "id"
114         },
115         {
116          "xtype" : "Hidden",
117          "$ xns" : "Roo.form",
118          "name" : "project_id"
119         }
120        ]
121       }
122      ]
123     },
124     {
125      "listeners" : {
126       "|click" : "function() {\n    _this.form.reset();\n    _this.dialog.hide();\n}"
127      },
128      "text" : "Cancel",
129      "xtype" : "Button",
130      "$ xns" : "Roo",
131      "* prop" : "buttons[]"
132     },
133     {
134      "listeners" : {
135       "|click" : "function() \n{\n    if(typeof(_this.data._confirm) != 'undefined' && _this.data._confirm * 1 == 1){\n        Roo.MessageBox.confirm(\n            \"Confirm\", \n            \"Are you sure '\" + _this.data.display_name + \"' Merge with '\" + _this.form.findField('_merge_id').getRawValue() + \"'\", \n            function(res) {\n                if(res != 'yes') {\n                    return;\n                }\n                \n                _this.form.doAction('submit');\n                return;\n            }\n        );\n        \n        return;\n    }\n    _this.form.doAction('submit');\n    \n}"
136      },
137      "text" : "OK",
138      "xtype" : "Button",
139      "$ xns" : "Roo",
140      "* prop" : "buttons[]"
141     }
142    ]
143   }
144  ]
145 }