PHP8
[Pman.BAdmin] / Pman.Dialog.BAdminImportUrl.bjs
1 {
2  "name" : "Pman.Dialog.BAdminImportUrl",
3  "parent" : "",
4  "title" : "Pman.Dialog.BAdminImportUrl",
5  "path" : "/home/johns/gitlive/Pman.BAdmin/Pman.Dialog.BAdminImportUrl.bjs",
6  "permname" : "",
7  "modOrder" : "001",
8  "strings" : {
9   "c8c55f55be8cbe3141db7e26ab0a8b4e" : "Import URL",
10   "ea4788705e6873b424c65e91c2846b19" : "Cancel",
11   "e0aa021e21dddbd6d8cecec71e9cf564" : "OK",
12   "e6b391a8d2c4d45902a23a8b6585703d" : "URL"
13  },
14  "items" : [
15   {
16    "xtype" : "Modal",
17    "$ xns" : "Roo.bootstrap",
18    "String title" : "Import URL",
19    "items" : [
20     {
21      "listeners" : {
22       "click" : "function (_self, e)\n{\n    _this.dialog.hide();\n}"
23      },
24      "xtype" : "Button",
25      "html" : "Cancel",
26      "$ xns" : "Roo.bootstrap",
27      "* prop" : "buttons[]",
28      "$ String weight" : "'default'"
29     },
30     {
31      "listeners" : {
32       "click" : "function (_self, e)\n{\n    _this.form.doAction(\"submit\");\n}"
33      },
34      "String weight" : "primary",
35      "xtype" : "Button",
36      "html" : "OK",
37      "$ xns" : "Roo.bootstrap",
38      "* prop" : "buttons[]"
39     },
40     {
41      "listeners" : {
42       "actionfailed" : "function (_self, action)\n{\n    if (action.type == 'submit') {\n        \n        Roo.bootstrap.MessageBox.alert(\"Cannot import from URL\", \"Invalid URL format\");\n    }\n}",
43       "actioncomplete" : "function (_self, action)\n{\n     if (action.type == 'setdata') {\n        if(_this.data.target){\n            _this.form.url = baseURL + _this.data.target;\n        }\n       \n       \n       /*\r\n       if(_this.data.id*1 > 0) {\r\n           this.load({ method: 'GET', params: { '_id' : _this.data.id }});\n       }\r\n       */\r\n    }\n    \r\n    if (action.type == 'load') {\r\n        return;\r\n    }\n    \r\n    if (action.type =='submit') {\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}",
44       "render" : "function (_self)\n{\n    _this.form = this;\n}"
45      },
46      "xtype" : "Form",
47      "$ xns" : "Roo.bootstrap",
48      "String method" : "POST",
49      "$ String url" : "baseURL",
50      "items" : [
51       {
52        "String name" : "importUrl",
53        "xtype" : "Input",
54        "string fieldLabel" : "URL",
55        "String labelAlign" : "left",
56        "$ xns" : "Roo.bootstrap",
57        "Number labelWidth" : 1
58       }
59      ]
60     }
61    ]
62   }
63  ]
64 }