To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / plugins / redmine_tags / app / views / projects / _filter_search_tags.html.erb @ 1259:94a6e3687c45
History | View | Annotate | Download (932 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 | <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 |