To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / plugins / redmine_tags / app / views / projects / _filter_search_tags.html.erb @ 1260:b18f581b260a

History | View | Annotate | Download (958 Bytes)

1 1259:94a6e3687c45 luis
<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 1260:b18f581b260a luis
7
  <div id="project_tag_candidates" class="autocomplete" style="margin-top: 0;"></div>
8
9 1259:94a6e3687c45 luis
  <%= stylesheet_link_tag 'jquery.tagit.css', :plugin => 'redmine_tags' %>
10
  <%= stylesheet_link_tag 'redmine_tags', :plugin => 'redmine_tags' %>
11
  <%= javascript_include_tag 'tag-it', :plugin => 'redmine_tags' %>
12
13
  <%= javascript_tag "$('#tag_search').tagit({
14
            tagSource: function(search, showChoices) {
15
            var that = this;
16
            $.ajax({
17
              url: '#{url_for(:controller => 'auto_completes', :action => 'project_tags')}',
18
              data: {q: search.term},
19
              success: function(choices) {
20
              showChoices(that._subtractArray(jQuery.parseJSON(choices), that.assignedTags()));
21
            }
22
          });
23
        },
24
    });
25 1260:b18f581b260a luis
" -%>
26 1259:94a6e3687c45 luis
27
</div>
28
29
30
31
32