mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-08 08:34:21 +01:00
Default context autocomplete
This commit is contained in:
parent
c5bb41db82
commit
9cfcd4161a
3 changed files with 3 additions and 2 deletions
|
|
@ -27,7 +27,7 @@ suppress_edit_button ||= false
|
||||||
:method => 'get',
|
:method => 'get',
|
||||||
:with => "'_source_view=#{@source_view}'",
|
:with => "'_source_view=#{@source_view}'",
|
||||||
:before => "$('#{dom_id(project)}').block({message:null});",
|
:before => "$('#{dom_id(project)}').block({message:null});",
|
||||||
:complete => "$('#{dom_id(project)}').unblock();"
|
:complete => "$('#{dom_id(project)}').unblock();enable_rich_interaction();"
|
||||||
) %>
|
) %>
|
||||||
|
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
:method => 'get',
|
:method => 'get',
|
||||||
:with => "'_source_view=#{@source_view}'",
|
:with => "'_source_view=#{@source_view}'",
|
||||||
:before => "$('#{dom_id(project)}').block({message: null});",
|
:before => "$('#{dom_id(project)}').block({message: null});",
|
||||||
:complete => "$('#{dom_id(project)}').unblock();"
|
:complete => "$('#{dom_id(project)}').unblock();enable_rich_interaction();"
|
||||||
) %>
|
) %>
|
||||||
</div>
|
</div>
|
||||||
<% unless project.description.blank? -%>
|
<% unless project.description.blank? -%>
|
||||||
|
|
|
||||||
|
|
@ -263,6 +263,7 @@ function enable_rich_interaction(){
|
||||||
$('input.Date').datepicker();
|
$('input.Date').datepicker();
|
||||||
/* Autocomplete */
|
/* Autocomplete */
|
||||||
$('input[name=context_name]').autocomplete(contextNames);
|
$('input[name=context_name]').autocomplete(contextNames);
|
||||||
|
$('input[name=project[default_context_name]]').autocomplete(contextNames);
|
||||||
$('input[name=project_name]').autocomplete(projectNames);
|
$('input[name=project_name]').autocomplete(projectNames);
|
||||||
|
|
||||||
/* have to bind on keypress because of limitataions of live() */
|
/* have to bind on keypress because of limitataions of live() */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue