Mercurial > hg > extraction-interface
comparison js/taggingtext.js @ 64:ca6bf3532830 extractapp
bug fixed: 1.popup tag window is closed automatically when saving text file. 2.bring popup tag window to the front
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Wed, 01 Apr 2015 15:13:37 +0200 |
parents | 3395385476d1 |
children | f9ae94a9b041 |
comparison
equal
deleted
inserted
replaced
63:3395385476d1 | 64:ca6bf3532830 |
---|---|
206 saveUndoText(); | 206 saveUndoText(); |
207 var newdiv = document.createElement("div"); | 207 var newdiv = document.createElement("div"); |
208 newdiv.id = "questionMarkId"; | 208 newdiv.id = "questionMarkId"; |
209 newdiv.setAttribute("class", "questionMarkClass"); | 209 newdiv.setAttribute("class", "questionMarkClass"); |
210 | 210 |
211 // set z-index to 4 to bring popup tag windwo to front | |
211 newdiv.style.cssText = 'top:'+eventObject.pageY+'; left:'+eventObject.pageX+'; position:absolute; background-color: white; border:1px solid black; padding: 5px; z-index:4'; | 212 newdiv.style.cssText = 'top:'+eventObject.pageY+'; left:'+eventObject.pageX+'; position:absolute; background-color: white; border:1px solid black; padding: 5px; z-index:4'; |
212 newdiv.innerHTML = "Tag: "+tagName+"<br>Value: "+tagObject.text()+"<br>"; | 213 newdiv.innerHTML = "Tag: "+tagName+"<br>Value: "+tagObject.text()+"<br>"; |
213 | 214 |
214 var newbutton = $('<button>Remove this</button>').mouseup(function (e2) { | 215 var newbutton = $('<button>Remove this</button>').mouseup(function (e2) { |
215 var textKeep = $(this).parent().parent().html(); | 216 var textKeep = $(this).parent().parent().html(); |