fix #8131 - chinese translations
[Pman.Core] / Pman.Dialog.CoreImportUrl.js
index c227083..f9d6703 100644 (file)
@@ -1 +1,147 @@
-0
\ No newline at end of file
+//<script type="text/javascript">
+
+// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
+
+Roo.namespace('Pman.Dialog');
+
+Pman.Dialog.CoreImportUrl = {
+
+ _strings : {
+  'ea4788705e6873b424c65e91c2846b19' :"Cancel",
+  'c8c55f55be8cbe3141db7e26ab0a8b4e' :"Import URL",
+  'e0aa021e21dddbd6d8cecec71e9cf564' :"OK",
+  'e6b391a8d2c4d45902a23a8b6585703d' :"URL"
+ },
+
+ dialog : false,
+ callback:  false,
+
+ show : function(data, cb)
+ {
+  if (!this.dialog) {
+   this.create();
+  }
+
+  this.callback = cb;
+  this.data = data;
+  this.dialog.show(this.data._el);
+  if (this.form) {
+   this.form.reset();
+   this.form.setValues(data);
+   this.form.fireEvent('actioncomplete', this.form,  { type: 'setdata', data: data });
+  }
+
+ },
+
+ create : function()
+ {
+   var _this = this;
+   this.dialog = Roo.factory({
+    xtype : 'LayoutDialog',
+    closable : false,
+    collapsible : false,
+    draggable : false,
+    height : 140,
+    modal : true,
+    resizable : false,
+    title : _this._strings['c8c55f55be8cbe3141db7e26ab0a8b4e'] /* Import URL */,
+    width : 500,
+    xns : Roo,
+    '|xns' : 'Roo',
+    center : {
+     xtype : 'LayoutRegion',
+     xns : Roo,
+     '|xns' : 'Roo'
+    },
+    buttons : [
+     {
+      xtype : 'Button',
+      text : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
+      listeners : {
+       click : function (_self, e)
+        {
+            _this.dialog.hide();
+        }
+      },
+      xns : Roo,
+      '|xns' : 'Roo'
+     },
+     {
+      xtype : 'Button',
+      text : _this._strings['e0aa021e21dddbd6d8cecec71e9cf564'] /* OK */,
+      listeners : {
+       click : function (_self, e)
+        {
+            _this.form.doAction("submit");
+        }
+      },
+      xns : Roo,
+      '|xns' : 'Roo'
+     }
+    ],
+    items  : [
+     {
+      xtype : 'ContentPanel',
+      region : 'center',
+      xns : Roo,
+      '|xns' : 'Roo',
+      items  : [
+       {
+        xtype : 'Form',
+        method : 'POST',
+        style : 'margin:10px;',
+        url : baseURL,
+        listeners : {
+         actioncomplete : function (_self, action)
+          {
+               if (action.type == 'setdata') {
+                  if(_this.data.target){
+                      _this.form.url = baseURL + _this.data.target;
+                  }\r
+                 // _this.dialog.el.mask("Loading");\r
+                 // if(_this.data.id*1 > 0)\r
+                 //     this.load({ method: 'GET', params: { '_id' : _this.data.id }});\r
+                 \r
+                 return;\r
+              }\r
+              if (action.type == 'load') {\r
+           \r
+                  return;\r
+              }\r
+              if (action.type =='submit') {\r
+              \r
+                  //action.result.data\r
+                  _this.dialog.hide();\r
+              //    Roo.log(_this.callback);\r
+                   if (_this.callback) {\r
+                      _this.callback.call(_this, action.result.data);\r
+                   }\r
+                   _this.form.reset();\r
+                   return;\r
+              }
+          },
+         rendered : function (form)
+          {
+              _this.form= form;
+          }
+        },
+        xns : Roo.form,
+        '|xns' : 'Roo.form',
+        items  : [
+         {
+          xtype : 'TextField',
+          fieldLabel : _this._strings['e6b391a8d2c4d45902a23a8b6585703d'] /* URL */,
+          name : 'importUrl',
+          vtype : 'url',
+          width : 250,
+          xns : Roo.form,
+          '|xns' : 'Roo.form'
+         }
+        ]
+       }
+      ]
+     }
+    ]
+   });
+ }
+};