From: <kev...@us...> - 2007-01-05 19:54:02
|
Revision: 270 http://svn.sourceforge.net/obo/?rev=270&view=rev Author: kevinschaper Date: 2007-01-05 11:53:54 -0800 (Fri, 05 Jan 2007) Log Message: ----------- Used an existing feature of ajax.autocompleter library to handle synonyms and obsoletes. Anything wrapped in a span with class="informal" will show up in the word completion dropdown, but won't actually end up in the text box. That way we can put [syn: synonymname] and [obs] in when appropriate, but still use the built in ajax.autocompleter function to fill in the text in the box. This is good, because gives correct behavior when using a keyboard. Modified Paths: -------------- phenote/trunk/src/web/WEB-INF/jsp/term_completion.jsp Modified: phenote/trunk/src/web/WEB-INF/jsp/term_completion.jsp =================================================================== --- phenote/trunk/src/web/WEB-INF/jsp/term_completion.jsp 2007-01-05 19:48:49 UTC (rev 269) +++ phenote/trunk/src/web/WEB-INF/jsp/term_completion.jsp 2007-01-05 19:53:54 UTC (rev 270) @@ -3,8 +3,11 @@ <body> <ul> <c:forEach var="completionTerm" items="${formBean.completionTermList}"> - <li onmouseover="phenoteState.updateTermInfo(new Term('<c:out value="${completionTerm.ID}" />','<c:out value="${completionTerm.escapedName}" escapeXml="false" />','<c:out value="${completionTerm.ontol}" />'));" id='<c:out value="${completionTerm.ID}" />' - onclick="phenoteState.setCompletedTerm('<c:out value="${completionTerm.escapedName}" />','<c:out value="${completionTerm.field}" />')"><c:out value="${completionTerm.compListDisplayString}" /></li> + <li onmouseover="phenoteState.updateTermInfo(new Term('<c:out value="${completionTerm.ID}" />', + '<c:out value="${completionTerm.escapedName}" escapeXml="false" />', + '<c:out value="${completionTerm.ontol}" />'));" + id='<c:out value="${completionTerm.ID}" />' + ><c:out value="${completionTerm.name}" /><span class="informal"><c:out value="${completionTerm.compListInformalString}" /></span></li> </c:forEach> </ul> </body> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |