static/kelmu.editor.js
function() {
      container.find('.kelmu-annotation, .kelmu-button').mousedown(resetRotation);
      container.find('.kelmu-annotation, .kelmu-button').mouseup(restoreRotation);

      container.find('.kelmu-annotation, .kelmu-button').draggable({
        start: function() {
          var elem = $(this);
          var data = window.kelmu.data[id];
          data.selectedElementNumber = parseInt(elem.attr('data-annotation'), 10);
          resetRotation.call(this);
        },
        stop: function() {
          restoreRotation.call(this);
          updatePosition.call(this);
          notifyModifications();
          updateView(false, true);
        }
      });

      container.find('.kelmu-annotation-content, .kelmu-button').css('cursor', 'move');

    }
function() {
      container.find('.kelmu-annotation, .kelmu-button').mousedown(resetRotation);
      container.find('.kelmu-annotation, .kelmu-button').mouseup(restoreRotation);

      container.find('.kelmu-annotation, .kelmu-button').draggable({
        start: function() {
          var elem = $(this);
          var data = window.kelmu.data[id];
          data.selectedElementNumber = parseInt(elem.attr('data-annotation'), 10);
          resetRotation.call(this);
        },
        stop: function() {
          restoreRotation.call(this);
          updatePosition.call(this);
          notifyModifications();
          updateView(false, true);
        }
      });

      container.find('.kelmu-annotation-content, .kelmu-button').css('cursor', 'move');

    }
function ( ) { container . find ( '.kelmu-annotation, .kelmu-button' ) . mousedown ( resetRotation ) ; container . find ( '.kelmu-annotation, .kelmu-button' ) . mouseup ( restoreRotation ) ; container . find ( '.kelmu-annotation, .kelmu-button' ) . draggable ( { start : function ( ) { var elem = $ ( this ) ; var data = window . kelmu . data [ id ] ; data . selectedElementNumber = parseInt ( elem . attr ( 'data-annotation' ) , 10 ) ; resetRotation . call ( this ) ; } , stop : function ( ) { restoreRotation . call ( this ) ; updatePosition . call ( this ) ; notifyModifications ( ) ; updateView ( false , true ) ; } } ) ; container . find ( '.kelmu-annotation-content, .kelmu-button' ) . css ( 'cursor' , 'move' ) ; }
Makes the annotations to be moveable in the editor.
Makes the annotations to be moveable in the editor .