Pman.Dialog.CoreNotifyRecurKeywords.bjs
[Pman.Core] / Pman.Dialog.CoreNotifyRecurKeywords.bjs
1 {
2  "name" : "Pman.Dialog.CoreNotifyRecurKeywords",
3  "parent" : "",
4  "title" : "",
5  "path" : "/home/edward/gitlive/Pman.Core/Pman.Dialog.CoreNotifyRecurKeywords.bjs",
6  "permname" : "",
7  "modOrder" : "001",
8  "strings" : {
9   "cfcd208495d565ef66e7dff9f98764da" : "0",
10   "ea4788705e6873b424c65e91c2846b19" : "Cancel",
11   "e0aa021e21dddbd6d8cecec71e9cf564" : "OK",
12   "790f855c2139f2faecb810519e90b833" : "Add Notification Keywords"
13  },
14  "items" : [
15   {
16    "listeners" : {
17     "show" : "function (_self)\n{\n    \n}"
18    },
19    "modal" : true,
20    "collapsible" : false,
21    "background" : true,
22    "title" : "Add Notification Keywords",
23    "xtype" : "LayoutDialog",
24    "width" : 400,
25    "$ xns" : "Roo",
26    "closable" : false,
27    "resizable" : false,
28    "height" : 150,
29    "items" : [
30     {
31      "xtype" : "LayoutRegion",
32      "$ xns" : "Roo",
33      "titlebar" : false,
34      "* prop" : "center"
35     },
36     {
37      "region" : "center",
38      "fitToFrame" : true,
39      "background" : true,
40      "xtype" : "ContentPanel",
41      "$ xns" : "Roo",
42      "items" : [
43       {
44        "listeners" : {
45         "|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",
46         "|rendered" : "function (form)\n{\n   _this.form = form;\n}"
47        },
48        "$ url" : "baseURL + '/Roo/Core_notify_recur.php'",
49        "xtype" : "Form",
50        "method" : "POST",
51        "style" : "margin: 5px",
52        "$ xns" : "Roo.form",
53        "items" : [
54         {
55          "xtype" : "Hidden",
56          "$ xns" : "Roo.form",
57          "name" : "etype"
58         },
59         {
60          "xtype" : "Hidden",
61          "value" : 0,
62          "$ xns" : "Roo.form",
63          "name" : "seqid"
64         },
65         {
66          "xtype" : "Hidden",
67          "$ xns" : "Roo.form",
68          "name" : "id"
69         }
70        ]
71       }
72      ]
73     },
74     {
75      "listeners" : {
76       "|click" : "function() {\n    _this.form.reset();\n    _this.dialog.hide();\n}"
77      },
78      "text" : "Cancel",
79      "xtype" : "Button",
80      "$ xns" : "Roo",
81      "* prop" : "buttons[]"
82     },
83     {
84      "listeners" : {
85       "|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}"
86      },
87      "text" : "OK",
88      "xtype" : "Button",
89      "$ xns" : "Roo",
90      "* prop" : "buttons[]"
91     }
92    ]
93   }
94  ]
95 }