Add form-control support for CIDR masks

This commit is contained in:
billz 2024-12-11 09:18:33 -08:00
parent a7ac30f548
commit 86e8b208e0

View File

@ -488,6 +488,15 @@ $(document).ready(function(){
});
});
$(document).ready(function() {
$('.cidr').mask('099.099.099.099/099', {
translation: {
'0': { pattern: /[0-9]/ }
},
placeholder: "___.___.___.___/___"
});
});
$('#wg-upload,#wg-manual').on('click', function (e) {
if (this.id == 'wg-upload') {
$('#PanelManual').hide();