Labels autocomplete

This commit is contained in:
Dmitriy Zaporozhets 2012-12-18 06:14:05 +03:00
parent 2b921a6c72
commit 85d5f606f6
3 changed files with 45 additions and 0 deletions

View file

@ -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)