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)
|
super(valEl)
|
||||||
channel = @getRoot().data.channel
|
channel = @getRoot().data.channel
|
||||||
channelSchema = Backbone.Mediator.channelSchemas[channel]
|
channelSchema = Backbone.Mediator.channelSchemas[channel]
|
||||||
autocompleteValues = ({label: val?.title or key, value: key} for key, val of channelSchema?.properties)
|
autocompleteValues = []
|
||||||
valEl.find('input').autocomplete(source: autocompleteValues, minLength: 0, delay: 0, autoFocus: true)
|
autocompleteValues.push key for key, val of channelSchema?.properties
|
||||||
|
valEl.find('input').autocomplete(source: autocompleteValues, minLength: 0, delay: 0, autoFocus: true).autocomplete("search", "")
|
||||||
valEl
|
valEl
|
||||||
|
|
||||||
saveChanges: (valEl) ->
|
saveChanges: (valEl) ->
|
||||||
|
|
Reference in a new issue