mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-13 04:00:21 +00:00
Non-integer values cannot be entered into shop front quantities
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
Darkswarm.directive "integer", ->
|
||||
restrict: 'A'
|
||||
link: (scope, elem, attr) ->
|
||||
elem.bind 'input', ->
|
||||
digits = elem.val().replace(/\D/g, "")
|
||||
elem.val digits
|
||||
Reference in New Issue
Block a user