PHP8
[Pman.BAdmin] / Pman.Dialog.BAdminImportUrl.js
index f5b1964..0443783 100644 (file)
@@ -81,14 +81,14 @@ Roo.apply(Pman.Dialog.BAdminImportUrl.prototype, {
              if (action.type == 'setdata') {
                 if(_this.data.target){
                     _this.form.url = baseURL + _this.data.target;
-                }\r
-               // _this.dialog.el.mask("Loading");
-               \r
+                }
+               
+               
+               /*\r
                if(_this.data.id*1 > 0) {\r
                    this.load({ method: 'GET', params: { '_id' : _this.data.id }});
                }\r
-               \r
-               return;\r
+               */\r
             }
             \r
             if (action.type == 'load') {\r
@@ -98,7 +98,7 @@ Roo.apply(Pman.Dialog.BAdminImportUrl.prototype, {
             if (action.type =='submit') {\r
                 //action.result.data\r
                 _this.dialog.hide();\r
-            //    Roo.log(_this.callback);\r
+                //Roo.log(_this.callback);\r
                  if (_this.callback) {\r
                     _this.callback.call(_this, action.result.data);\r
                  }\r
@@ -106,6 +106,13 @@ Roo.apply(Pman.Dialog.BAdminImportUrl.prototype, {
                  return;\r
             }
         },
+       actionfailed : function (_self, action)
+        {
+            if (action.type == 'submit') {
+                
+                Roo.bootstrap.MessageBox.alert("Cannot import from URL", "Invalid URL format");
+            }
+        },
        render : function (_self)
         {
             _this.form = this;