anchor.diff:                      }
                   });
               });
  -        }
  -
  -        function enablePath(type, pathId) {
  -            $("#" + type + "_enabled_" + pathId).click();
           }
   
           function populateResponseOverrideList(possibleEndpoints) {
  
positive.code:                     success: function() {
                          if (enabledCount == 0) {
                              // automatically enable the response if a first override is added
                              if($("#" + type + "_enabled_" + currentPathId).attr("checked") != "checked") {
                                  enablePath(type, currentPathId);
                              }
                          }
                          if (type == "response") {
                              getEnabledResponseOverrides(populateEnabledResponseOverrides(true));
                              selectedResponseOverride = selected.value + "," + ordinal;
                              $("#responseOverrideSelect").val(-999).trigger("change");
  
negative.code:         var selectedRequestOverride = 0;
  
          // Called when a different override is selected from the select box
          function overrideSelectChanged(overrideType) {
              var enabledCount = $("select#" + overrideType + "OverrideEnabled option").length;
  
              $("select#" + overrideType + "OverrideSelect option:selected").each(function(i, selected) {
                  if (selected.value == -999)
                      return true;
  
                  // get the next ordinal so we can pop up the argument dialogue
                  var ordinal = getNextOrdinal(overrideType + "OverrideEnabled", selected.value);
  
                  $.ajax({
                      type: "POST",
  