diff options
author | Renato Botelho <renato@netgate.com> | 2017-05-23 13:59:20 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-05-23 13:59:20 -0300 |
commit | f8ba7256e0073042fd28464595e6d8ed540e8ef5 (patch) | |
tree | 434c66ad48dde23698690b035a75fcf762088144 /src/usr/local/www/diag_dns.php | |
parent | 2470b276febe8d76104f7aba1d4b13176ffcf7dc (diff) | |
parent | 45eafdbd7b958bd4f9459d90a6a63ff8202eec3b (diff) | |
download | pfsense-f8ba7256e0073042fd28464595e6d8ed540e8ef5.zip pfsense-f8ba7256e0073042fd28464595e6d8ed540e8ef5.tar.gz |
Merge pull request #3737 from phil-davis/diag-dns-hide-add-alias-button
Diffstat (limited to 'src/usr/local/www/diag_dns.php')
-rw-r--r-- | src/usr/local/www/diag_dns.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/usr/local/www/diag_dns.php b/src/usr/local/www/diag_dns.php index 965fe97..cb9a0c9 100644 --- a/src/usr/local/www/diag_dns.php +++ b/src/usr/local/www/diag_dns.php @@ -333,4 +333,21 @@ if (!$input_errors && $type) { </div> <?php } +?> +<script type="text/javascript"> +//<![CDATA[ +events.push(function() { + var original_host = "<?=$host;?>"; + + $('input[name="host"]').on('input', function() { + if ($('#host').val() == original_host) { + disableInput('create_alias', false); + } else { + disableInput('create_alias', true); + } + }); +}); +//]]> +</script> +<?php include("foot.inc"); |