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 @ 1266:6cc1d684b8e3
History | View | Annotate | Download (963 Bytes)
| 1 |
<div>
|
|---|---|
| 2 |
<p id="project_tags"> |
| 3 |
<%= label_tag 'tag_search', l(:tags_search).html_safe -%>
|
| 4 |
<%= text_field_tag 'tag_search', params[:tag_search] -%>
|
| 5 |
<br /> |
| 6 |
</p>
|
| 7 |
|
| 8 |
<div id="project_tag_candidates" class="autocomplete" style="margin-top: 0;"></div> |
| 9 |
|
| 10 |
<%= 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 |
" -%>
|
| 27 |
|
| 28 |
</div>
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|