foodsoft/app/views/tasks/_form_javascript.html.haml

15 lines
499 B
Text
Raw Normal View History

2015-05-08 20:54:48 +02:00
- content_for :javascript do
:javascript
$(function() {
$("#task_user_list").tokenInput("#{users_path(:format => :json)}", {
crossDomain: false,
prePopulate: $("#task_user_list").data("pre"),
hintText: '#{escape_javascript(t('tasks.form.search.hint'))}',
noResultText: '#{escape_javascript(t('tasks.form.search.noresult'))}',
searchingText: '#{escape_javascript(t('tasks.form.search.placeholder'))}',
theme: 'facebook'
});
});