Pman.Dialog.AdminEnumMerge.bjs
[Pman.Admin] / Pman.Dialog.AdminEnumMerge.bjs
1 {
2  "name" : "Pman.Dialog.AdminEnumMerge",
3  "parent" : "",
4  "title" : "",
5  "path" : "/home/edward/gitlive/Pman.Admin/Pman.Dialog.AdminEnumMerge.bjs",
6  "permname" : "",
7  "modOrder" : "001",
8  "strings" : {
9   "0b3e4317865feb6f0224397600b7cafc" : "Merge Core Enum",
10   "ea4788705e6873b424c65e91c2846b19" : "Cancel",
11   "e0aa021e21dddbd6d8cecec71e9cf564" : "OK"
12  },
13  "items" : [
14   {
15    "modal" : true,
16    "collapsible" : false,
17    "background" : true,
18    "title" : "Merge Core Enum",
19    "xtype" : "LayoutDialog",
20    "width" : 400,
21    "$ xns" : "Roo",
22    "closable" : false,
23    "resizable" : false,
24    "height" : 150,
25    "items" : [
26     {
27      "xtype" : "LayoutRegion",
28      "$ xns" : "Roo",
29      "titlebar" : false,
30      "* prop" : "center"
31     },
32     {
33      "fitToFrame" : true,
34      "background" : true,
35      "region" : "center",
36      "xtype" : "ContentPanel",
37      "$ xns" : "Roo",
38      "items" : [
39       {
40        "listeners" : {
41         "|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",
42         "|rendered" : "function (form)\n{\n   _this.form = form;\n}"
43        },
44        "$ url" : "baseURL + '/Roo/core_enum.php'",
45        "xtype" : "Form",
46        "method" : "POST",
47        "style" : "margin: 5px",
48        "$ xns" : "Roo.form",
49        "items" : [
50         {
51          "xtype" : "Hidden",
52          "$ xns" : "Roo.form",
53          "name" : "id"
54         }
55        ]
56       }
57      ]
58     },
59     {
60      "listeners" : {
61       "|click" : "function() {\n    _this.form.reset();\n    _this.dialog.hide();\n}"
62      },
63      "text" : "Cancel",
64      "xtype" : "Button",
65      "$ xns" : "Roo",
66      "* prop" : "buttons[]"
67     },
68     {
69      "listeners" : {
70       "|click" : "function() {\n\n    var name =     _this.form.findField('name').getValue();\n    name = name.toUpperCase().replace(/[^A-Z]+/g, '');\n    if (!name.length) {\n        Roo.MessageBox.alert(\"Error\",\"Please fill in a valid name\");\n        return;\n    }\n    _this.form.findField('name').setValue(name);\n \n    _this.form.doAction('submit');\n    \n}"
71      },
72      "text" : "OK",
73      "xtype" : "Button",
74      "$ xns" : "Roo",
75      "* prop" : "buttons[]"
76     }
77    ]
78   }
79  ]
80 }