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 @ 1264:bc7baaca92a9
History | View | Annotate | Download (963 Bytes)
| 1 | 1259:94a6e3687c45 | luis | <div>
|
|---|---|---|---|
| 2 | 1264:bc7baaca92a9 | luis | <p id="project_tags"> |
| 3 | <%= label_tag 'tag_search', l(:tags_search).html_safe -%>
|
||
| 4 | <%= text_field_tag 'tag_search', params[:tag_search] -%>
|
||
| 5 | 1259:94a6e3687c45 | luis | <br /> |
| 6 | </p>
|
||
| 7 | 1260:b18f581b260a | luis | |
| 8 | <div id="project_tag_candidates" class="autocomplete" style="margin-top: 0;"></div> |
||
| 9 | |||
| 10 | 1259:94a6e3687c45 | luis | <%= stylesheet_link_tag 'jquery.tagit.css', :plugin => 'redmine_tags' %>
|
| 11 | <%= stylesheet_link_tag 'redmine_tags', :plugin => 'redmine_tags' %>
|
||
| 12 | <%= javascript_include_tag 'tag-it', :plugin => 'redmine_tags' %>
|
||
| 13 | |||
| 14 | <%= javascript_tag "$('#tag_search').tagit({
|
||
| 15 | tagSource: function(search, showChoices) {
|
||
| 16 | var that = this;
|
||
| 17 | $.ajax({
|
||
| 18 | url: '#{url_for(:controller => 'auto_completes', :action => 'project_tags')}',
|
||
| 19 | data: {q: search.term},
|
||
| 20 | success: function(choices) {
|
||
| 21 | showChoices(that._subtractArray(jQuery.parseJSON(choices), that.assignedTags()));
|
||
| 22 | }
|
||
| 23 | });
|
||
| 24 | },
|
||
| 25 | });
|
||
| 26 | 1260:b18f581b260a | luis | " -%>
|
| 27 | 1259:94a6e3687c45 | luis | |
| 28 | </div>
|
||
| 29 | |||
| 30 | |||
| 31 | |||
| 32 | |||
| 33 |