Skip to content
This repository was archived by the owner on Jul 8, 2020. It is now read-only.

Commit

Permalink
[GF#32711] Synchronize code and exactMatch radio buttons. [KLO, 040913]
Browse files Browse the repository at this point in the history
SVN-Revision: 3027
  • Loading branch information
Kim Ong committed Apr 9, 2013
1 parent 555bee1 commit c1528d7
Showing 1 changed file with 35 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,41 @@
src="<%=request.getContextPath()%>/js/tip_followscroll.js"></script>



<script type="text/javascript">
function onCodeButtonPressed(formname) {
var algorithmObj = document.forms[formname].algorithm;
for (var j=0; j<algorithmObj.length; j++) {
algorithm = algorithmObj[j].value;
if (algorithm == "exactMatch") {
algorithmObj[j].checked = true;
break;
}
}
}
function getSearchTarget(formname) {
var searchTargetObj = document.forms[formname].searchTarget;
for (var j=0; j<searchTargetObj.length; j++) {
if (searchTargetObj[j].checked == true) {
return searchTargetObj[j].value;
}
}
}
function onAlgorithmChanged(formname) {
var target = getSearchTarget(formname);
if (target != "codes") return;
var targetObj = document.forms[formname].searchTarget;
targetObj[0].checked = true;
}
<%!
private static Logger _logger = Utils.getJspLogger("resolved_value_set_search_results.jsp");
private static String _ncimUrl = NCItBrowserProperties.getNCIM_URL();
Expand Down

0 comments on commit c1528d7

Please sign in to comment.