mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 23:58:02 -05:00
Shows all autocomplete values on click instead of having to type initially
This commit is contained in:
parent
0555c2ec14
commit
632d9a666e
1 changed files with 3 additions and 2 deletions
|
@ -128,8 +128,9 @@ class EventPropsNode extends TreemaNode.nodeMap.string
|
|||
super(valEl)
|
||||
channel = @getRoot().data.channel
|
||||
channelSchema = Backbone.Mediator.channelSchemas[channel]
|
||||
autocompleteValues = ({label: val?.title or key, value: key} for key, val of channelSchema?.properties)
|
||||
valEl.find('input').autocomplete(source: autocompleteValues, minLength: 0, delay: 0, autoFocus: true)
|
||||
autocompleteValues = []
|
||||
autocompleteValues.push key for key, val of channelSchema?.properties
|
||||
valEl.find('input').autocomplete(source: autocompleteValues, minLength: 0, delay: 0, autoFocus: true).autocomplete("search", "")
|
||||
valEl
|
||||
|
||||
saveChanges: (valEl) ->
|
||||
|
|
Loading…
Reference in a new issue