Revision 754:51d6290d3027 vendor/plugins/redmine_tags

View differences:

vendor/plugins/redmine_tags/app/views/projects/_filter_tags.rhtml
6 6
      </p>
7 7
      <div id="project_tag_candidates" class="autocomplete"></div>
8 8
      <%= javascript_include_tag 'tags_input', :plugin => 'redmine_tags' %>
9

  
9 10
      <%= javascript_tag "observeProjectTagsField('#{url_for(:controller => 'auto_completes', :action => 'project_tags')}')" %>
10 11
    </div>
11 12
  <% end -%>
vendor/plugins/redmine_tags/app/views/projects/index.rhtml
15 15
        <%= label_tag 'q', l('project_filtering_q_label') %>
16 16
        <%= text_field_tag 'q', @question, :size => 30, :id => 'search-input' %>
17 17
      </p>
18
      <%= render :partial => 'custom_field', :collection => @custom_fields_used_for_project_filtering %>
18

  
19 19
      <p class='buttons'><%= submit_tag( l(:button_send), :id => 'filter_button') -%></p>
20

  
21
      <div id='filter_tags'>
22
        <%= render :partial => 'filter_tags' %>
23
      </div>
24
            
25
      <%= link_to_remote('Submit', :url => { :controller => :projects, :action => :index, :format => :js }, :method => :get, :class => 'buttons') %>
26
      
20 27
    </div>
21

  
22
    <div id='filter_tags'>
23
      <%= render :partial => 'filter_tags' %>
24
    </div>
25

  
26 28
  </fieldset>
27 29
<% end %>
28 30

  
29

  
30
<%= javascript_tag "Field.focus('search-input');" %>
31
<%= javascript_tag "$('filter_button').hide();" %>
32
<%= observe_form( :project_filtering,
33
  :frequency => 0.5,
34
  :url => { :controller => :projects, :action => :index, :format => :js },
35
  :method => :get
36
  )
37
%>
38

  
39 31
<div id="projects">
40 32
  <%= render :partial => 'filtered_projects' %>
41 33
</div>

Also available in: Unified diff