mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-27 21:06:49 +00:00
7 lines
161 B
CoffeeScript
7 lines
161 B
CoffeeScript
Darkswarm.directive "max", ->
|
|
restrict: 'A'
|
|
link: (scope, elem, attr)->
|
|
elem.bind 'input', ->
|
|
if elem.val() > +attr.max
|
|
elem.val attr.max
|