Merge pull request #1710 from RaspAP/maint/cidr-mask-notion

Add form-control support for CIDR masks
This commit is contained in:
Bill Zimmerman 2024-12-11 20:47:55 +01:00 committed by GitHub
commit b5179f3991
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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) { $('#wg-upload,#wg-manual').on('click', function (e) {
if (this.id == 'wg-upload') { if (this.id == 'wg-upload') {
$('#PanelManual').hide(); $('#PanelManual').hide();