1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-04 15:54:48 +01:00

control panel tweaks

This commit is contained in:
Joshua Tauberer
2014-10-07 15:12:35 +00:00
parent a56bb984d6
commit 9210ebdb9f
3 changed files with 12 additions and 10 deletions

View File

@@ -23,9 +23,9 @@
<button type="submit" class="btn btn-primary">Update</button>
</div>
</div>
<div class="form-group">
<div id="secondarydns-clear-instructions" class="form-group" style="display: none">
<div class="col-sm-offset-1 col-sm-11">
<p class="small">Clear the box to use the box itself as secondary DNS, which is the default/normal setup.</p>
<p class="small">Clear the input field above and click Update to use this machine itself as secondary DNS, which is the default/normal setup.</p>
</div>
</div>
</form>
@@ -76,6 +76,7 @@ function show_custom_dns() {
{ },
function(data) {
$('#secondarydnsHostname').val(data.hostname ? data.hostname : '');
$('#secondarydns-clear-instructions').toggle(data.hostname != null);
});
}
@@ -89,6 +90,7 @@ function do_set_secondary_dns() {
function(data) {
if (data == "") return; // nothing updated
show_modal_error("Secondary DNS", $("<pre/>").text(data));
$('#secondarydns-clear-instructions').slideDown();
},
function(err) {
show_modal_error("Secondary DNS", $("<pre/>").text(err));