Implement jQuery mask plugin w/ IP address inputs

This commit is contained in:
billz
2023-11-09 22:48:39 +00:00
parent 1d5ee03324
commit a3230d0684
4 changed files with 18 additions and 7 deletions

View File

@@ -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) {