Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
126,511 changes: 62,976 additions & 63,535 deletions public/cui.js

Large diffs are not rendered by default.

94 changes: 47 additions & 47 deletions public/cui.min.js

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions src/elements/Input/NumberInput.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,20 @@ class CUI.NumberInput extends CUI.Input
check: (v) ->
CUI.util.isNumber(v)

prevent_invalid_input:
default: true
check: Boolean

@removeOpt("checkInput")
@removeOpt("getValueForDisplay")
@removeOpt("getValueForInput")
@removeOpt("correctValueForInput")
@removeOpt("prevent_invalid_input")

readOpts: ->
super()
if @_json_number
@_decimals = 13
@_prevent_invalid_input = true

@_checkInput = @__checkInput
@setMin(@_min)
@setMax(@_max)
Expand Down