diff --git a/app/js/custom.js b/app/js/custom.js index b7b4360e..6c929c26 100644 --- a/app/js/custom.js +++ b/app/js/custom.js @@ -368,7 +368,15 @@ $('#js-sys-reboot, #js-sys-shutdown').on('click', function (e) { }); $(document).ready(function(){ - $("#PanelManual").hide(); + $("#PanelManual").hide(); + $('.ip_address').mask('0ZZ.0ZZ.0ZZ.0ZZ', { + translation: { + 'Z': { + pattern: /[0-9]/, optional: true + } + }, + placeholder: "___.___.___.___" + }); }); $('#wg-upload,#wg-manual').on('click', function (e) { diff --git a/index.php b/index.php index d3e6b92c..bffc643c 100755 --- a/index.php +++ b/index.php @@ -148,6 +148,9 @@ initializeApp(); + + + diff --git a/templates/dhcp/general.php b/templates/dhcp/general.php index 84c8928f..90f1a98d 100644 --- a/templates/dhcp/general.php +++ b/templates/dhcp/general.php @@ -37,7 +37,7 @@
- +
@@ -47,7 +47,7 @@
- +
@@ -57,7 +57,7 @@
- +
@@ -107,7 +107,7 @@
- +
@@ -117,7 +117,7 @@
- +
diff --git a/templates/dhcp/static_leases.php b/templates/dhcp/static_leases.php index a8d371ba..c1e090c4 100644 --- a/templates/dhcp/static_leases.php +++ b/templates/dhcp/static_leases.php @@ -33,7 +33,7 @@ " class="form-control" autofocus="autofocus">
- " class="form-control"> + " class="form-control ip_address" maxlength="15">
" class="form-control">