Skip to content

Commit

Permalink
Change cursor on rootToken as well
Browse files Browse the repository at this point in the history
  • Loading branch information
LFDM committed Jul 3, 2014
1 parent ec0e2f0 commit b3ca504
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/js/arethusa.core/directives/root_token.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,15 @@ angular.module('arethusa.core').directive('rootToken', [
element.bind('mouseenter', function () {
apply(function() {
element.addClass('hovered');
if (changeHeads && state.hasSelections()) {
element.addClass('copy-cursor');
}
});
});
element.bind('mouseleave', function () {
apply(function() {
element.removeClass('hovered');
element.removeClass('copy-cursor');
});
});
}
Expand Down

0 comments on commit b3ca504

Please sign in to comment.