Revision 1244:a3ed5c4d90f0 plugins/redmine_tags/app
| plugins/redmine_tags/app/views/projects/_tags_form.html.erb | ||
|---|---|---|
| 5 | 5 |
<em class="info"><%= l(:text_tags_info).html_safe %></em> |
| 6 | 6 |
</p> |
| 7 | 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_tags')}', false)" %>
|
|
| 8 |
<%= stylesheet_link_tag 'jquery.tagit.css', :plugin => 'redmine_tags' %> |
|
| 9 |
<%= stylesheet_link_tag 'redmine_tags', :plugin => 'redmine_tags' %> |
|
| 10 |
<%= javascript_include_tag 'tag-it', :plugin => 'redmine_tags' %> |
|
| 11 |
|
|
| 12 |
<%= javascript_tag "$('#project_tag_list').tagit({
|
|
| 13 |
tagSource: function(search, showChoices) {
|
|
| 14 |
var that = this; |
|
| 15 |
$.ajax({
|
|
| 16 |
url: '#{url_for(:controller => 'auto_completes', :action => 'project_tags')}',
|
|
| 17 |
data: {q: search.term},
|
|
| 18 |
success: function(choices) {
|
|
| 19 |
showChoices(that._subtractArray(jQuery.parseJSON(choices), that.assignedTags())); |
|
| 20 |
} |
|
| 21 |
}); |
|
| 22 |
}, |
|
| 23 |
}); |
|
| 24 |
" %> |
|
| 25 |
|
|
| 10 | 26 |
</div> |
| 11 | 27 |
<% end -%> |
Also available in: Unified diff