"use strict";

angular.module('arethusa.core').directive('rootToken', [
  'state',
  'depTree',
  function(state, depTree) {
    return {
      restrict: 'A',
      scope: {},
      link: function(scope, element, attrs) {
        function apply(fn) {
          scope.$apply(fn());
        }

        var changeHeads = depTree.mode === 'editor';

        element.bind('click', function() {
          apply(function() {
            if (changeHeads) {
              state.handleChangeHead('0000', 'click');
              state.deselectAll();
            }
          });
        });

        element.bind('mouseenter', function () {
          apply(function() {
            element.addClass('hovered');
          });
        });
        element.bind('mouseleave', function () {
          apply(function() {
            element.removeClass('hovered');
          });
        });
      }
    };
  }
]);

@@ -684,32 +684,149 @@
 ass('hovered');%0A
+            if (changeHeads && state.hasSelections()) %7B%0A              element.addClass('copy-cursor');%0A            %7D%0A
           %7D);%0A  
@@ -949,32 +949,80 @@
 ass('hovered');%0A
+            element.removeClass('copy-cursor');%0A
           %7D);%0A  

Change cursor on rootToken as well