andre пре 5 месеци
родитељ
комит
02849cc752

+ 1 - 4
app/UI/Client/Setting/Forms/InfoForm.php

@@ -63,10 +63,7 @@ class InfoForm extends BaseForm implements ClientArea
         $row->addInputAddon('', false, '→');
         $row->addInputComponent((new InputGroupElements\Text('dkim'))->addHtmlAttribute('readonly','true'));
         $this->addSection($row);
-        $hide1 = new Hidden('maildomain');
-        $hide2 = new Hidden('id');
-
-        $this->generateDoubleSection([$hide1, $hide2]);
+        $this->generateDoubleSection([new Hidden('maildomain'), new Hidden('id')]);
 
     }
 }

+ 1 - 1
app/UI/Client/Templates/assets/js/setting/index.js

@@ -6,7 +6,7 @@
  */
 mgEventHandler.on('ModalLoaded', null,function(){
     $('.lu-modal__dialog').width('800');
-    $("#maildomain").val($('input[name="maildomain"]'));
+    $("#maildomain").val($('input[name="maildomain"]').val());
     var mxactive = $('input[name="mxactive"]');
     var mxthurdata = $('input[name="mxthurdata"]');
     if(mxthurdata.val() == mxactive.val()){