jglamine / calvinwebprint

A friendlier interface to the printing system at Calvin College.
https://calvinwebprint.com
MIT License
6 stars 7 forks source link

Prevent decimal numbers for number of copies #44

Open jglamine opened 9 years ago

jglamine commented 9 years ago

It's possible to enter "1.5" in the number of copies field, but then when you submit it it fails. Make the input element only accept positive integers.

See this page for possible approaches: http://stackoverflow.com/questions/8808590/html5-number-input-type-that-takes-only-integers