PHP8
[Pman.BAdmin] / Pman.Dialog.BAdminIPAccess.js
index 9e8057c..f6b63fe 100644 (file)
@@ -10,6 +10,7 @@ Roo.apply(Pman.Dialog.BAdminIPAccess.prototype, {
  _strings : {
   'e2c9d024b79dfb48b42a7807206c6aed' :"Verify New IP Access",
   'a12a3079e14ced46e69ba52b8a90b21a' :"IP",
+  'ea4788705e6873b424c65e91c2846b19' :"Cancel",
   'f6039d44b29456b20f8f373155ae4973' :"Username",
   '004bf6c9a40003140292e97330236c53' :"Action",
   '5a787141d53b573ec9b86e900bfe0d79' :"Expire Date",
@@ -42,12 +43,25 @@ Roo.apply(Pman.Dialog.BAdminIPAccess.prototype, {
   var _this = this;
   this.dialog = Roo.factory({
     xtype : 'Modal',
-    allow_close : false,
+    allow_close : true,
     cls : 'enable-overflow',
     title : _this._strings['e2c9d024b79dfb48b42a7807206c6aed'] /* Verify New IP Access */,
     xns : Roo.bootstrap,
     '|xns' : 'Roo.bootstrap',
     buttons : [
+     {
+      xtype : 'Button',
+      html : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
+      weight : 'default',
+      listeners : {
+       click : function (_self, e)
+        {
+            _this.dialog.hide();
+        }
+      },
+      xns : Roo.bootstrap,
+      '|xns' : 'Roo.bootstrap'
+     },
      {
       xtype : 'Button',
       html : _this._strings['70d9be9b139893aa6c69b5e77e614311'] /* Confirm */,
@@ -55,11 +69,6 @@ Roo.apply(Pman.Dialog.BAdminIPAccess.prototype, {
       listeners : {
        click : function (_self, e)
         {
-            if(!_this.form.isValid()){
-                return;
-            }
-        
-            _this.dialog.el.mask('Sending...');
             _this.form.doAction('submit');
             
         }
@@ -73,8 +82,8 @@ Roo.apply(Pman.Dialog.BAdminIPAccess.prototype, {
       xtype : 'Form',
       errorMask : true,
       labelAlign : 'top',
-      loadMask : false,
-      url : baseURL + '/Core/VerifyAccess',
+      loadMask : true,
+      url : baseURL + '/Roo/core_ip_access',
       listeners : {
        actioncomplete : function (_self, action)
         {