Diag DNS disable Add Alias button when host field is changed

This commit is contained in:
Phil Davis 2017-05-21 10:29:23 +05:45
parent 8ce9725941
commit 45eafdbd7b
No known key found for this signature in database
GPG Key ID: 26D7C8081EE13B86

View File

@ -316,4 +316,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");