Ignore:
Timestamp:
2016-04-02T22:57:40+13:00 (8 years ago)
Author:
davidb
Message:

Changes to work with the newer direct-edit JS script that was put into Greenstone3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-sites-dev/mozarts-laptop/collect/digital-music-stand/script/annotate.js

    r30446 r30456  
    9292      editableElem.setAttribute("metapos",numAnnotations);
    9393
     94      //editableElem.setAttribute("style", "cursor:text;");
     95     
    9496      editableElem.style.position     = "relative";
    9597
     
    101103      tdTextElem.setAttribute("onmousedown","javascript:return annotateMouseDown(this,event);");
    102104      tdTextElem.setAttribute("onmouseup",  "javascript:return annotateMouseUp(this,event);");
    103 
     105      tdTextElem.setAttribute("style", "cursor:text;");
     106     
    104107      var closeElem = document.createElement("div");
    105       closeElem.onmouseup=closeAnnotation;
    106 
     108      //closeElem.onmouseup=closeAnnotation;
     109      closeElem.setAttribute("onmouseup","javascript:return closeAnnotation(this,event);");
     110      closeElem.setAttribute("style", "cursor:default;");
     111     
    107112      closeElem.style.position = "absolute";
    108113      closeElem.style.top      = "0px";
     
    115120      resizeElem.setAttribute("onmouseup",  "javascript:return stopResizeAnnotation(this,event);");
    116121
     122      resizeElem.setAttribute("style", "cursor:default;");
     123     
    117124      resizeElem.style.position = "absolute";
    118125      resizeElem.style.bottom   = "0px";
Note: See TracChangeset for help on using the changeset viewer.