anchor.diff:    solve = function() {
       $('#solveButton').attr("disabled", "disabled");
       $('#resolveDirectionsButton').attr("disabled", "disabled");
  +    if (directionsTaskTimer != undefined) {
  +      window.clearInterval(directionsTaskTimer);
  +      directionsTaskTimer = undefined;
  +    }
       $.ajax({
         url: "<%=application.getContextPath()%>/rest/vehiclerouting/solution/solve",
         type: "POST",
  
positive.code:       }
      });
    };
  
    google.maps.event.addDomListener(window, 'load', initMap);
  </script>
  
negative.code:   terminateEarly = function () {
      $('#terminateEarlyButton').attr("disabled", "disabled");
      window.clearInterval(intervalTimer);
      if (directionsTaskTimer != undefined) {
        window.clearInterval(directionsTaskTimer);
        directionsTaskTimer = undefined;
      }
      $.ajax({
        url: "<%=application.getContextPath()%>/rest/vehiclerouting/solution/terminateEarly",
        type: "POST",
  