Skip to content
Snippets Groups Projects
Commit 21cdaaaa authored by Florian Schaal's avatar Florian Schaal
Browse files

fixed template and query in mail_domain_dkim.js

parent 872f64b3
No related branches found
No related tags found
No related merge requests found
...@@ -66,7 +66,7 @@ function setRequest(action) { ...@@ -66,7 +66,7 @@ function setRequest(action) {
} }
var selector=jQuery('#dkim_selector').val(); var selector=jQuery('#dkim_selector').val();
var publickey=jQuery('#dkim_public').val(); var publickey=jQuery('#dkim_public').val();
var privatekey=jQuery('#dkim_private').val(); var privatekey=encodeURIComponent(document.getElementById("dkim_private").value)
request.open('POST', 'mail/mail_domain_dkim_create.php', true); request.open('POST', 'mail/mail_domain_dkim_create.php', true);
request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
request.send('domain='+domain+'&action='+action+'&dkim_selector='+selector+'&dkim_public='+publickey+'&dkim_private='+privatekey); request.send('domain='+domain+'&action='+action+'&dkim_selector='+selector+'&dkim_public='+publickey+'&dkim_private='+privatekey);
......
...@@ -82,12 +82,12 @@ ...@@ -82,12 +82,12 @@
{tmpl_var name='active'} {tmpl_var name='active'}
</div> </div>
</div> </div>
<div class="subsectiontoggle"><span></span>{tmpl_var name='dkim_settings_txt'}<em></em></div>
<tmpl_if name="domain_module"> <tmpl_if name="domain_module">
<input type="hidden" name="domain_module" value="1" id="domain_module" /> <input type="hidden" name="domain_module" value="1" id="domain_module" />
<tmpl_else> <tmpl_else>
<input type="hidden" name="domain_module" value="0" id="domain_module" /> <input type="hidden" name="domain_module" value="0" id="domain_module" />
</tmpl_if> </tmpl_if>
<div class="subsectiontoggle"><span></span>{tmpl_var name='dkim_settings_txt'}<em></em></div>
<div style="display:none;"> <div style="display:none;">
<div class="ctrlHolder"> <div class="ctrlHolder">
<p class="label">{tmpl_var name='dkim_txt'}</p> <p class="label">{tmpl_var name='dkim_txt'}</p>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment