Merge branch 'devel' into fix/IPv6field

This commit is contained in:
Mcat12
2017-02-04 12:51:25 -05:00
committed by GitHub
6 changed files with 23 additions and 12 deletions

View File

@@ -1,6 +1,15 @@
$(function () {
$("[data-mask]").inputmask();
});
$("[data-mask]").inputmask();
$("[data-static]").on("click", function(){
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);
});
$(".confirm-reboot").confirm({
text: "Are you sure you want to send a reboot command to your Pi-Hole?",
@@ -64,6 +73,7 @@ $(document).ready(function() {
{
leasetable = $("#DHCPLeasesTable").DataTable({
dom: "<'row'<'col-sm-12'tr>><'row'<'col-sm-6'i><'col-sm-6'f>>",
"columnDefs": [ { "bSortable": false, "orderable": false, targets: -1} ],
"paging": false,
"scrollCollapse": true,
"scrollY": "200px",