Fix task form
This commit is contained in:
parent
a34c462c59
commit
1a62ce55e3
3 changed files with 16 additions and 13 deletions
14
app/views/tasks/_form_javascript.html.haml
Normal file
14
app/views/tasks/_form_javascript.html.haml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
- 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'
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue