Pman.Dialog.CmsBlog.bjs
[Pman.Cms] / Pman.Dialog.CmsApplyStyleSheets.bjs
1 {
2  "name" : "Pman.Dialog.CmsApplyStyleSheets",
3  "parent" : "",
4  "title" : "",
5  "path" : "/home/edward/gitlive/Pman.Cms/Pman.Dialog.CmsApplyStyleSheets.bjs",
6  "permname" : "",
7  "modOrder" : "001",
8  "strings" : {
9   "ea4788705e6873b424c65e91c2846b19" : "Cancel",
10   "4f6a786f206270451624db40d61d9855" : "Add Stylesheets",
11   "85e8231d44b865e90f6a39b356ded9bd" : "Stylesheets",
12   "e0aa021e21dddbd6d8cecec71e9cf564" : "OK"
13  },
14  "items" : [
15   {
16    "modal" : true,
17    "collapsible" : false,
18    "title" : "Add Stylesheets",
19    "xtype" : "LayoutDialog",
20    "width" : 600,
21    "$ xns" : "Roo",
22    "closable" : false,
23    "resizable" : false,
24    "height" : 300,
25    "items" : [
26     {
27      "xtype" : "LayoutRegion",
28      "$ xns" : "Roo",
29      "* prop" : "center"
30     },
31     {
32      "region" : "center",
33      "xtype" : "ContentPanel",
34      "$ xns" : "Roo",
35      "items" : [
36       {
37        "listeners" : {
38         "actionfailed" : "function (_self, action)\n{\n    _this.dialog.el.unmask();\n    \n    Pman.standardActionFailed(_self, action);\n}",
39         "|actioncomplete" : "function(_self,action)\n{\n    if (action.type == 'setdata') {\n        \n        this.load({ method: 'GET', params: { '_stylesheets' : 1 }});\n        return;\n    }\n    if (action.type == 'load') {\n        _this.dialog.el.unmask();\n        return;\n    }\n    if (action.type =='submit') {\n    \n        _this.dialog.el.unmask();\n        _this.dialog.hide();\n\n         if (_this.callback) {\n            _this.callback.call(_this, _this.form.getValues());\n         }\n         _this.form.reset();\n         return;\n    }\n}\n",
40         "|rendered" : "function (form)\n{\n    _this.form= form;\n}\n"
41        },
42        "$ url" : "baseURL + '/Roo/Cms_page.php'",
43        "method" : "POST",
44        "xtype" : "Form",
45        "style" : "margin:10px;",
46        "String labelAlign" : "top",
47        "$ xns" : "Roo.form",
48        "items" : [
49         {
50          "fieldLabel" : "Stylesheets",
51          "Number width" : 550,
52          "xtype" : "TextArea",
53          "allowBlank" : true,
54          "Number height" : 200,
55          "$ xns" : "Roo.form",
56          "name" : "_stylesheets"
57         }
58        ]
59       }
60      ]
61     },
62     {
63      "listeners" : {
64       "click" : "function (_self, e)\n{\n    _this.dialog.hide();\n}"
65      },
66      "text" : "Cancel",
67      "xtype" : "Button",
68      "$ xns" : "Roo",
69      "* prop" : "buttons[]"
70     },
71     {
72      "listeners" : {
73       "click" : "function (_self, e)\n{\n    var stylesheets = _this.form.findField('_stylesheets').getValue();\n    \n    \n    _this.form.doAction(\"submit\");\n}"
74      },
75      "text" : "OK",
76      "xtype" : "Button",
77      "$ xns" : "Roo",
78      "* prop" : "buttons[]"
79     }
80    ]
81   }
82  ]
83 }