mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-18 00:00:12 +01:00
parent
761810cf7f
commit
f39108d2e7
2 changed files with 4 additions and 3 deletions
|
|
@ -3,6 +3,7 @@ page['todo_project_name'].value = @project.name
|
|||
|
||||
# renew project auto complete array
|
||||
page << "var projectNames = #{project_names_for_autocomplete};"
|
||||
page << "enable_rich_interaction();"
|
||||
|
||||
status_message = "Name of project was changed"
|
||||
page.notify :notice, status_message, 5.0
|
||||
|
|
|
|||
|
|
@ -187,9 +187,9 @@ function project_defaults(){
|
|||
function enable_rich_interaction(){
|
||||
$('input.Date').datepicker({'dateFormat': dateFormat});
|
||||
/* Autocomplete */
|
||||
$('input[name=context_name]:not(.ac_input)').autocomplete(contextNames, {matchContains: true});
|
||||
$('input[name=project[default_context_name]]:not(.ac_input)').autocomplete(contextNames, {matchContains: true});
|
||||
$('input[name=project_name]:not(.ac_input)').autocomplete(projectNames, {matchContains: true});
|
||||
$('input[name=context_name]').autocomplete(contextNames, {matchContains: true});
|
||||
$('input[name=project[default_context_name]]').autocomplete(contextNames, {matchContains: true});
|
||||
$('input[name=project_name]').autocomplete(projectNames, {matchContains: true});
|
||||
$('input[name=tag_list]:not(.ac_input)').autocomplete(tagNames, {multiple: true,multipleSeparator:',',matchContains:true});
|
||||
$('input[name=predecessor_list]:not(.ac_input)').autocomplete('/todos/auto_complete_for_predecessor',
|
||||
{multiple: true,multipleSeparator:','});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue