mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-05 00:38:50 +01:00
Fixed context name autocomplete. Closes #524.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@556 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
77bed1e80b
commit
46df520dd6
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ Event.observe($('todo_project_name'), "blur", selectDefaultContext.bind($('todo_
|
|||
|
||||
<script type="text/javascript">
|
||||
contextNamesForAutoComplete = <%= context_names_for_autocomplete %>;
|
||||
if (contextNamesForAutoComplete.length > 1 || contextNamesForAutoComplete[0].length > 0)
|
||||
if (contextNamesForAutoComplete.length > 1 || contextNamesForAutoComplete[0].length > 0) {
|
||||
contextAutoCompleter = new Autocompleter.Local('todo_context_name', 'context_list', contextNamesForAutoComplete, {choices:100,autoSelect:false});
|
||||
$('todo_context_name').projectDefaultContextsMap = eval('(' + <%= @default_project_context_name_map %> + ')');
|
||||
Event.observe($('todo_context_name'), "focus", function(){ $('todo_context_name').editedByTracksUser = true; });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue