andre 5 mesi fa
parent
commit
c31cf2ac68

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

@@ -41,7 +41,7 @@ class InfoForm extends BaseForm implements ClientArea
     private function initFields()
     {
 //        $message = di('lang')->absoluteT('dnsinfomessage');
-        $message = 'DNS Information für <input name="maildomain"></input><br><i>Schr&auml;g</i><table width="100%"><tr><td>test1</td><td>Test2</td></tr></table>';
+        $message = 'DNS Information für <div id="maildomain"></div><br><i>Schr&auml;g</i><table width="100%"><tr><td>test1</td><td>Test2</td></tr></table>';
         $this->addInternalAlert($message, null, 100);
         $row = new InputGroup('MX');
         $row->addInputComponent((new InputGroupElements\Text('mxthurdata'))->addHtmlAttribute('readonly','true'));
@@ -63,5 +63,7 @@ class InfoForm extends BaseForm implements ClientArea
         $row->addInputAddon('', false, '&rarr;');
         $row->addInputComponent((new InputGroupElements\Text('dkim'))->addHtmlAttribute('readonly','true'));
         $this->addSection($row);
+        $field = new Text('maildomain');
+        $this->addField($field);
     }
 }

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

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