annotate .svn/pristine/21/213447b90bcf49e61197299b7ccf1319e4dafbe5.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 <%= title [l(:label_custom_field_plural), custom_fields_path],
Chris@1517 2 [l(@custom_field.type_name), custom_fields_path(:tab => @custom_field.class.name)],
Chris@1517 3 l(:label_custom_field_new) %>
Chris@1517 4
Chris@1517 5 <%= labelled_form_for :custom_field, @custom_field, :url => custom_fields_path, :html => {:id => 'custom_field_form'} do |f| %>
Chris@1517 6 <%= render :partial => 'form', :locals => { :f => f } %>
Chris@1517 7 <%= hidden_field_tag 'type', @custom_field.type %>
Chris@1517 8 <% end %>
Chris@1517 9
Chris@1517 10 <%= javascript_tag do %>
Chris@1517 11 $('#custom_field_field_format').change(function(){
Chris@1517 12 $.ajax({
Chris@1517 13 url: '<%= new_custom_field_path(:format => 'js') %>',
Chris@1517 14 type: 'get',
Chris@1517 15 data: $('#custom_field_form').serialize(),
Chris@1517 16 complete: toggleDisabledInit
Chris@1517 17 });
Chris@1517 18 });
Chris@1517 19 <% end %>