Labels autocomplete
This commit is contained in:
parent
2b921a6c72
commit
85d5f606f6
3 changed files with 45 additions and 0 deletions
|
@ -13,6 +13,12 @@ window.errorMessage = (message) ->
|
|||
ehtml.html(message)
|
||||
ehtml
|
||||
|
||||
window.split = (val) ->
|
||||
return val.split( /,\s*/ )
|
||||
|
||||
window.extractLast = (term) ->
|
||||
return split( term ).pop()
|
||||
|
||||
# Disable button if text field is empty
|
||||
window.disableButtonIfEmptyField = (field_selector, button_selector) ->
|
||||
field = $(field_selector)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue