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: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit e3002eea20)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
This commit is contained in:
Marc Véron 2016-06-22 07:57:06 +02:00 committed by Frédéric Demians
parent aa680d86dd
commit ecc37f0f57
1 changed files with 3 additions and 3 deletions

View File

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