Skip to content
Snippets Groups Projects
Commit f503049c authored by Benjamin Bertrand's avatar Benjamin Bertrand
Browse files

Clean some javascript

parent 8d4e8f94
No related branches found
No related tags found
Loading
......@@ -17,7 +17,10 @@ $(document).ready(function() {
}
// Populate IP select field on first page load
update_available_ips();
// Populate vlan_id and prefix select field on first page load
if( $("#network_id").length ) {
update_available_ips();
}
// Update IP select field when changing network
$("#network_id").on('change', function() {
......@@ -39,7 +42,6 @@ $(document).ready(function() {
// Prefill interface name with hostname
$("#name").keyup(function(event) {
var hostname = $(this).val();
console.log(hostname);
$("#interface_name").val(hostname);
});
......
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