mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Diag DNS disable Add Alias button when host field is changed
(cherry picked from commit 45eafdbd7b)
This commit is contained in:
parent
12ca33f4dc
commit
2e294992e4
@ -365,4 +365,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");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user