Skip to content

Commit

Permalink
Merge pull request #1710 from RaspAP/maint/cidr-mask-notion
Browse files Browse the repository at this point in the history
Add form-control support for CIDR masks
  • Loading branch information
billz authored Dec 11, 2024
2 parents a7ac30f + 86e8b20 commit b5179f3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/js/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b5179f3

Please sign in to comment.