Commit e3002eea authored by Marc Véron's avatar Marc Véron Committed by Kyle M Hall

Bug 16795 - Patron categories: Accept integers only for enrolment period and age limits

To test:
- Apply patch
- Clear browser cache
- Go to Home > Administration > Patron categories
- Create or edit a category
- Verify that field 'In months', 'Age required' and 'Upperage limit'
  accept digits only
Signed-off-by: default avatarOwen Leonard <[email protected]>
Signed-off-by: default avatarKyle M Hall <[email protected]>
Signed-off-by: default avatarKyle M Hall <[email protected]>
parent 9b399a80
......@@ -59,7 +59,7 @@ $(document).ready(function() {
required: function(element){
return $("#enrolmentperioddate").val() === "";
},
number: true,
digits: true,
enrollment_period: true
},
enrolmentperioddate: {
......@@ -69,10 +69,10 @@ $(document).ready(function() {
enrollment_period: true
},
dateofbirthrequired: {
number: true
digits: true
},
upperagelimit: {
number: true
digits: true
},
enrolmentfee: {
number: true
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment