anchor.diff:  <script>
     function hasTopicsChanged() {
       var msg = 'Warning! Unchecking this box will remove all topics and the reservations of everyone who is signed up for them';
  -        var checkbox = jQuery('#assignment_require_signup');
  +        var checkbox = jQuery('#has_topic');
  +        var intelegent_topic_selection_field  = jQuery('#assignment_is_intelligent_field');
   
           if (checkbox.is(':checked')) {
  -          addDueDateTableElement('signup', 0, <%= due_date(@assignment_form.assignment, 'signup').to_json.html_safe %>);
  -            addDueDateTableElement('drop_topic', 0, <%= due_date(@assignment_form.assignment, 'drop_topic').to_json.html_safe %>);
  -        } else {
  -          if (<%= @assignment_form.assignment.has_topics? %>) {
  -            if (confirm(msg)) {
  -              removeDueDateTableElement('signup', 0);
  -                    removeDueDateTableElement('drop_topic', 0);
  -            } else {
  -              checkbox.prop('checked', true);
  +            intelegent_topic_selection_field.removeAttr('hidden');
  +
  +        } else {
  +            if (<%= @assignment_form.assignment.has_topics?%>){
  +                if (confirm(msg)) {
  +                    intelegent_topic_selection_field.attr('hidden', true);
  +                } else {
  +                    checkbox.prop('checked', true);
  +                }
               }
  -          } else {
  -            removeDueDateTableElement('signup', 0);
  -                removeDueDateTableElement('drop_topic', 0);
  -          }
  +            else{
  +                intelegent_topic_selection_field.attr('hidden', true);
  +            }
           }
     }
   
  
positive.code:     </td>
    </tr>
  
  
  
    <tr>
      <td style='padding:5px' id='assignment_review_visible_to_all_field'>
        <input name="assignment_form[assignment][reviews_visible_to_all]" type="hidden" value="false"/>
  
negative.code: 
          if (checkbox.is(':checked')) {
            team_count_field.removeAttr('hidden');
  
          } else {
            if (<%= @assignment_form.assignment.has_teams?%>) {
              if (confirm(msg)) {
                team_count_field.attr('hidden', true);
              } else {
                checkbox.prop('checked', true);
              }
            } else {
              team_count_field.attr('hidden', true);
            }
          }
      }
  