Pleasing codacy

This commit is contained in:
DL6ER
2017-02-01 15:59:01 +01:00
parent a21b5e1cd9
commit f428d98fec
2 changed files with 8 additions and 7 deletions
+7 -6
View File
@@ -2,12 +2,13 @@ $(function () {
$("[data-mask]").inputmask();
$("[data-static]").on("click", function(){
var mac = $(this).closest("tr").find('#MAC').text();
var ip = $(this).closest("tr").find('#IP').text();
var host = $(this).closest("tr").find('#HOST').text();
$('input[name="AddHostname"]').val(host);
$('input[name="AddIP"]').val(ip);
$('input[name="AddMAC"]').val(mac);
var row = $(this).closest("tr");
var mac = row.find("#MAC").text();
var ip = row.find("#IP").text();
var host = row.find("#HOST").text();
$("input[name=\"AddHostname\"]").val(host);
$("input[name=\"AddIP\"]").val(ip);
$("input[name=\"AddMAC\"]").val(mac);
});
$("#custom1val").ipAddress({s:4});