annotate .svn/pristine/6c/6c35fd2827c4fb05906709fec38d2634247670e6.svn-base @ 1524:82fac3dcf466 redmine-2.5-integration

Fix failure to interpret Javascript when autocompleting members for project
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 11 Sep 2014 10:24:38 +0100
parents dffacf8a6908
children
rev   line source
Chris@1517 1 <h3 class="title"><%= l(:permission_add_issue_watchers) %></h3>
Chris@1517 2
Chris@1517 3 <%= form_tag({:controller => 'watchers',
Chris@1517 4 :action => (watched ? 'create' : 'append'),
Chris@1517 5 :object_type => (watched && watched.class.name.underscore),
Chris@1517 6 :object_id => watched,
Chris@1517 7 :project_id => @project},
Chris@1517 8 :remote => true,
Chris@1517 9 :method => :post,
Chris@1517 10 :id => 'new-watcher-form') do %>
Chris@1517 11
Chris@1517 12 <p><%= label_tag 'user_search', l(:label_user_search) %><%= text_field_tag 'user_search', nil %></p>
Chris@1517 13 <%= javascript_tag "observeSearchfield('user_search', 'users_for_watcher', '#{ escape_javascript url_for(:controller => 'watchers',
Chris@1517 14 :action => 'autocomplete_for_user',
Chris@1517 15 :object_type => (watched && watched.class.name.underscore),
Chris@1517 16 :object_id => watched,
Chris@1517 17 :project_id => @project) }')" %>
Chris@1517 18
Chris@1517 19 <div id="users_for_watcher">
Chris@1517 20 <%= principals_check_box_tags('watcher[user_ids][]', users) %>
Chris@1517 21 </div>
Chris@1517 22
Chris@1517 23 <p class="buttons">
Chris@1517 24 <%= submit_tag l(:button_add), :name => nil, :onclick => "hideModal(this);" %>
Chris@1517 25 <%= submit_tag l(:button_cancel), :name => nil, :onclick => "hideModal(this);", :type => 'button' %>
Chris@1517 26 </p>
Chris@1517 27 <% end %>