# HG changeset patch # User luisf # Date 1320947108 0 # Node ID 51d6290d30275013e37b7d6659e76c9ec6420195 # Parent 7877f25a19d6e366989686285d690a544de68fff added a button to submit filters; removed some unnecessary code; removes ajax observe functionality on filtering. diff -r 7877f25a19d6 -r 51d6290d3027 vendor/plugins/redmine_tags/app/views/projects/_filter_tags.rhtml --- a/vendor/plugins/redmine_tags/app/views/projects/_filter_tags.rhtml Thu Nov 10 15:49:00 2011 +0000 +++ b/vendor/plugins/redmine_tags/app/views/projects/_filter_tags.rhtml Thu Nov 10 17:45:08 2011 +0000 @@ -6,6 +6,7 @@

<%= javascript_include_tag 'tags_input', :plugin => 'redmine_tags' %> + <%= javascript_tag "observeProjectTagsField('#{url_for(:controller => 'auto_completes', :action => 'project_tags')}')" %> <% end -%> diff -r 7877f25a19d6 -r 51d6290d3027 vendor/plugins/redmine_tags/app/views/projects/index.rhtml --- a/vendor/plugins/redmine_tags/app/views/projects/index.rhtml Thu Nov 10 15:49:00 2011 +0000 +++ b/vendor/plugins/redmine_tags/app/views/projects/index.rhtml Thu Nov 10 17:45:08 2011 +0000 @@ -15,27 +15,19 @@ <%= label_tag 'q', l('project_filtering_q_label') %> <%= text_field_tag 'q', @question, :size => 30, :id => 'search-input' %>

- <%= render :partial => 'custom_field', :collection => @custom_fields_used_for_project_filtering %> +

<%= submit_tag( l(:button_send), :id => 'filter_button') -%>

+ +
+ <%= render :partial => 'filter_tags' %> +
+ + <%= link_to_remote('Submit', :url => { :controller => :projects, :action => :index, :format => :js }, :method => :get, :class => 'buttons') %> + - -
- <%= render :partial => 'filter_tags' %> -
- <% end %> - -<%= javascript_tag "Field.focus('search-input');" %> -<%= javascript_tag "$('filter_button').hide();" %> -<%= observe_form( :project_filtering, - :frequency => 0.5, - :url => { :controller => :projects, :action => :index, :format => :js }, - :method => :get - ) -%> -
<%= render :partial => 'filtered_projects' %>