Revision 1259:94a6e3687c45 plugins/redmine_tags/app/views

View differences:

plugins/redmine_tags/app/views/projects/_filter_search_tags.html.erb
1
<p class='tag'>
2
  <%- fields_for @project do |f| -%>
3
    <div>
4
      <p id="project_tags">
5
        <%= f.text_field :tag_list, :label => :label_tags_search, :size => 60, :class => 'hol' -%>
6
      </p>
7
      <div id="project_tag_candidates" class="autocomplete"></div>
8
      <%= javascript_include_tag 'tags_input', :plugin => 'redmine_tags' -%>
9
      <%= javascript_tag "observeProjectTagsField('#{url_for(:controller => 'auto_completes', :action => 'project_search_tags')}', true)" -%>
10
    </div>
11
  <%- end -%>
12
</p>
1
<div>
2
  <p id="project_tags"><%= text_field_tag 'tag_search', params[:tag_search] -%>
3
    <br />
4
    <em class="info"><%= l(:text_tags_info).html_safe %></em>
5
  </p>
6
  <div id="project_tag_candidates" class="autocomplete"></div>
7
  <%= stylesheet_link_tag 'jquery.tagit.css', :plugin => 'redmine_tags' %>
8
  <%= stylesheet_link_tag 'redmine_tags', :plugin => 'redmine_tags' %>
9
  <%= javascript_include_tag 'tag-it', :plugin => 'redmine_tags' %>
10

  
11
  <%= javascript_tag "$('#tag_search').tagit({
12
            tagSource: function(search, showChoices) {
13
            var that = this;
14
            $.ajax({
15
              url: '#{url_for(:controller => 'auto_completes', :action => 'project_tags')}',
16
              data: {q: search.term},
17
              success: function(choices) {
18
              showChoices(that._subtractArray(jQuery.parseJSON(choices), that.assignedTags()));
19
            }
20
          });
21
        },
22
    });
23
" %>
24

  
25
</div>
26

  
27

  
28

  
29

  
30

  
31

  

Also available in: Unified diff