Pman.Gnumeric.js
[Pman.Core] / Pman.Dialog.CoreImportUrl.bjs
1 {
2  "name" : "Pman.Dialog.CoreImportUrl",
3  "parent" : "",
4  "title" : "",
5  "path" : "/home/johns/gitlive/Pman.Core/Pman.Dialog.CoreImportUrl.bjs",
6  "permname" : "",
7  "modOrder" : "001",
8  "strings" : {
9   "ea4788705e6873b424c65e91c2846b19" : "Cancel",
10   "c8c55f55be8cbe3141db7e26ab0a8b4e" : "Import URL",
11   "e0aa021e21dddbd6d8cecec71e9cf564" : "OK",
12   "e6b391a8d2c4d45902a23a8b6585703d" : "URL"
13  },
14  "items" : [
15   {
16    "modal" : true,
17    "collapsible" : false,
18    "title" : "Import URL",
19    "xtype" : "LayoutDialog",
20    "width" : 500,
21    "$ xns" : "Roo",
22    "closable" : false,
23    "resizable" : false,
24    "height" : 140,
25    "draggable" : false,
26    "items" : [
27     {
28      "xtype" : "LayoutRegion",
29      "$ xns" : "Roo",
30      "* prop" : "center"
31     },
32     {
33      "region" : "center",
34      "xtype" : "ContentPanel",
35      "$ xns" : "Roo",
36      "items" : [
37       {
38        "listeners" : {
39         "actioncomplete" : "function (_self, action)\n{\n     if (action.type == 'setdata') {\n        if(_this.data.target){\n            _this.form.url = baseURL + _this.data.target;\n        }\r\n       // _this.dialog.el.mask(\"Loading\");\r\n       // if(_this.data.id*1 > 0)\r\n       //     this.load({ method: 'GET', params: { '_id' : _this.data.id }});\r\n       \r\n       return;\r\n    }\r\n    if (action.type == 'load') {\r\n \r\n        return;\r\n    }\r\n    if (action.type =='submit') {\r\n    \r\n        //action.result.data\r\n        _this.dialog.hide();\r\n    //    Roo.log(_this.callback);\r\n         if (_this.callback) {\r\n            _this.callback.call(_this, action.result.data);\r\n         }\r\n         _this.form.reset();\r\n         return;\r\n    }\n}",
40         "rendered" : "function (form)\n{\n    _this.form= form;\n}"
41        },
42        "$ url" : "baseURL",
43        "method" : "POST",
44        "xtype" : "Form",
45        "style" : "margin:10px;",
46        "$ xns" : "Roo.form",
47        "items" : [
48         {
49          "fieldLabel" : "URL",
50          "xtype" : "TextField",
51          "vtype" : "url",
52          "width" : 250,
53          "$ xns" : "Roo.form",
54          "name" : "importUrl"
55         }
56        ]
57       }
58      ]
59     },
60     {
61      "listeners" : {
62       "click" : "function (_self, e)\n{\n    _this.dialog.hide();\n}"
63      },
64      "text" : "Cancel",
65      "xtype" : "Button",
66      "$ xns" : "Roo",
67      "* prop" : "buttons[]"
68     },
69     {
70      "listeners" : {
71       "click" : "function (_self, e)\n{\n    _this.form.doAction(\"submit\");\n}"
72      },
73      "text" : "OK",
74      "xtype" : "Button",
75      "$ xns" : "Roo",
76      "* prop" : "buttons[]"
77     }
78    ]
79   }
80  ]
81 }