mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 15:50:13 +01:00
Basic autocomplete for projects and contexts
This commit is contained in:
parent
a04976e9ac
commit
8f21467b63
5 changed files with 869 additions and 3 deletions
|
|
@ -240,6 +240,13 @@ function update_project_order(event, ui){
|
|||
|
||||
/* Unobtrusive jQuery behavior */
|
||||
|
||||
function enable_rich_interaction(){
|
||||
$('input.Date').datepicker();
|
||||
/* Autocomplete */
|
||||
$('input[name=context_name]').autocomplete(contextNames);
|
||||
$('input[name=project_name]').autocomplete(projectNames);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
/* Nifty corners */
|
||||
Nifty("div#recurring_new_container","normal");
|
||||
|
|
@ -257,7 +264,6 @@ $(document).ready(function() {
|
|||
|
||||
setup_container_toggles();
|
||||
|
||||
$('input.Date').datepicker();
|
||||
|
||||
$('#toggle_action_new').click(function(){
|
||||
TracksForm.toggle('toggle_action_new', 'todo_new_action', 'todo-form-new-action',
|
||||
|
|
@ -382,4 +388,6 @@ $(document).ready(function() {
|
|||
$("#list-active-projects").sortable({handle: '.handle', update: update_project_order});
|
||||
$("#list-hidden-projects").sortable({handle: '.handle', update: update_project_order});
|
||||
$("#list-completed-projects").sortable({handle: '.handle', update: update_project_order});
|
||||
|
||||
enable_rich_interaction();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue