anchor.diff:    <%= f.fields_for :scheduling_poll_item do |f_item| %>
       <%= render :partial => "scheduling_poll_item_form", :locals => { :f => f, :f_item => f_item } %>
     <% end %>
  -
  -  <p>
  -    <%= link_to_add_scheduling_poll_item_fields_function "Add item", f,
  -          :code_tmpl => '$(this).parent().before(%S);scheduling_polls_update_date_picker()', :class => 'icon icon-add' do |f_item| %>
  +  <% add_item_tmpl = capture do %>
  +    <%= f.fields_for :scheduling_poll_item, SchedulingPollItem.new, :child_index => "CHILD_INDEX" do |f_item| %>
         <%= render :partial => "scheduling_poll_item_form", :locals => { :f => f, :f_item => f_item } %>
       <% end %>
  +  <% end %>
  +  <p>
  +    <%= link_to_function 'Add item', "scheduling_polls_add_item(\"#{escape_javascript(add_item_tmpl)}\")", :class => 'icon icon-add', :id => 'scheduling_poll_add_item_link' %>
     </p>
   </div>
   
  
positive.code:   }
  }
  $(function() { scheduling_polls_update_date_picker(true); });
  EOD
  %>
  
negative.code:   <%= f.submit %>
  </div>
  
  <%= javascript_tag <<EOD
  function scheduling_polls_update_date_picker(enable) {
    "use strict";
    if (enable === undefined) {
  