anchor.diff:      var activity = selectedActivity()
       if (!activity.id || !activity.name) return
       var cells = []
  -    var dayCount = ${period.dayRanges[0].days}.
  -    length
  +    var dayCount = ${period.dayRanges[0].days}.length
       var rowCount = $$("#input-body tr").length - 1
       // header
       var activityName = 'grid[' + rowCount + '].activity';
  
positive.code:     }
  }
  
  
  function setUpMovingMarker(draggable, dropZone) {
      draggable.innerHTML = '';
      var element = dropZone.getElementsBySelector("span")[0];
  
negative.code:     var element = draggable.parentNode.getElementsBySelector("span")[0].id
      executePlannedActivityRemove(element)
  
      var prevActivity = draggable.activity;
      draggable.innerHTML = '';
  }
  
  
  function createMarker(activityName) {
      var marker = document.createElement('span');
      marker.innerHTML = 'X';
      marker.className = 'marker';
      marker.activity = activityName;
      new Draggable(marker, {revert: true});
      return marker;
  