enable list of tags in tag input without typing two character, and show list on focus, fixes #1498
This commit is contained in:
parent
d7eefa1d69
commit
e6f6d38ca6
1 changed files with 2 additions and 1 deletions
|
@ -56,7 +56,7 @@ class App.WidgetTag extends App.Controller
|
|||
source = "#{App.Config.get('api_path')}/tag_search"
|
||||
@$('.js-newTagInput').autocomplete(
|
||||
source: source
|
||||
minLength: 2
|
||||
minLength: 0
|
||||
response: (e, ui) =>
|
||||
return if !ui
|
||||
return if !ui.content
|
||||
|
@ -68,6 +68,7 @@ class App.WidgetTag extends App.Controller
|
|||
e.preventDefault()
|
||||
@newTagLabel.addClass('hide')
|
||||
@newTagInput.removeClass('hide').focus()
|
||||
@newTagInput.trigger(jQuery.Event("keydown"))
|
||||
@editMode = true
|
||||
|
||||
hideAndAddInput: =>
|
||||
|
|
Loading…
Reference in a new issue