static/kelmu.editor.js
function(event) {
      if (event.ctrlKey) {
        return;
      }
      event.preventDefault();
      var elem = $(this);
      var data = window.kelmu.data[id];
      data.selectedElementNumber = parseInt(elem.attr('data-annotation'), 10);
      updateView(false, true);
    }
function(event) {
      if (event.ctrlKey) {
        return;
      }
      event.preventDefault();
      var elem = $(this);
      var data = window.kelmu.data[id];
      data.selectedElementNumber = parseInt(elem.attr('data-annotation'), 10);
      updateView(false, true);
    }
function ( event ) { if ( event . ctrlKey ) { return ; } event . preventDefault ( ) ; var elem = $ ( this ) ; var data = window . kelmu . data [ id ] ; data . selectedElementNumber = parseInt ( elem . attr ( 'data-annotation' ) , 10 ) ; updateView ( false , true ) ; }
Selects and changes the current element after clicking it.
The function should be called so that `this` referes to the element.
Selects and changes the current element after clicking it . The function should be called so that this referes to the element .