X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=Pman.Dialog.CoreImportUrl.bjs;h=71c37d096ced43a575a718d592f39768e65eff8c;hp=25bdd6031265c5db5e85fe465a3c870b4b81a5e6;hb=443623f47935eb52acd65a3ff0d84eab1fd5a98b;hpb=624fc85520a549fc25a1857d9c845a3700cd2992 diff --git a/Pman.Dialog.CoreImportUrl.bjs b/Pman.Dialog.CoreImportUrl.bjs index 25bdd603..71c37d09 100644 --- a/Pman.Dialog.CoreImportUrl.bjs +++ b/Pman.Dialog.CoreImportUrl.bjs @@ -1,10 +1,81 @@ { - "id": "roo-file-316", - "name": "Pman.Dialog.CoreImportUrl", - "parent": "", - "title": "", - "path": "/home/edward/gitlive/Pman.Core/Pman.Dialog.CoreImportUrl.bjs", - "items": [], - "permname": "", - "modOrder": "001" + "name" : "Pman.Dialog.CoreImportUrl", + "parent" : "", + "title" : "", + "path" : "/home/johns/gitlive/Pman.Core/Pman.Dialog.CoreImportUrl.bjs", + "permname" : "", + "modOrder" : "001", + "strings" : { + "ea4788705e6873b424c65e91c2846b19" : "Cancel", + "c8c55f55be8cbe3141db7e26ab0a8b4e" : "Import URL", + "e0aa021e21dddbd6d8cecec71e9cf564" : "OK", + "e6b391a8d2c4d45902a23a8b6585703d" : "URL" + }, + "items" : [ + { + "modal" : true, + "collapsible" : false, + "title" : "Import URL", + "xtype" : "LayoutDialog", + "width" : 500, + "$ xns" : "Roo", + "closable" : false, + "resizable" : false, + "height" : 140, + "draggable" : false, + "items" : [ + { + "xtype" : "LayoutRegion", + "$ xns" : "Roo", + "* prop" : "center" + }, + { + "region" : "center", + "xtype" : "ContentPanel", + "$ xns" : "Roo", + "items" : [ + { + "listeners" : { + "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}", + "rendered" : "function (form)\n{\n _this.form= form;\n}" + }, + "$ url" : "baseURL", + "method" : "POST", + "xtype" : "Form", + "style" : "margin:10px;", + "$ xns" : "Roo.form", + "items" : [ + { + "fieldLabel" : "URL", + "xtype" : "TextField", + "vtype" : "url", + "width" : 250, + "$ xns" : "Roo.form", + "name" : "importUrl" + } + ] + } + ] + }, + { + "listeners" : { + "click" : "function (_self, e)\n{\n _this.dialog.hide();\n}" + }, + "text" : "Cancel", + "xtype" : "Button", + "$ xns" : "Roo", + "* prop" : "buttons[]" + }, + { + "listeners" : { + "click" : "function (_self, e)\n{\n _this.form.doAction(\"submit\");\n}" + }, + "text" : "OK", + "xtype" : "Button", + "$ xns" : "Roo", + "* prop" : "buttons[]" + } + ] + } + ] } \ No newline at end of file