Skip to content

Commit

Permalink
turnn off match button if not allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
holmbergius committed Dec 31, 2023
1 parent 510fb16 commit feef16d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/webapp/encounters/encounter.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -7006,7 +7006,7 @@ out.println("<p id=\"noalgo\" style=\"visibility: hidden;\"><em>No configured al
%>
<div class="ia-match-filter-section">
<input type="button" value="<%=encprops.getProperty("doMatch")%>" onClick="iaMatchFilterGo()" />
<input id="matchbutton" type="button" value="<%=encprops.getProperty("doMatch")%>" onClick="iaMatchFilterGo()" />
<input style="background-color: #DDD;" type="button" value="<%=encprops.getProperty("cancel")%>"
onClick="$('.ia-match-filter-dialog').hide()" />
</div>
Expand Down
6 changes: 5 additions & 1 deletion src/main/webapp/javascript/ia.IBEIS.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ console.warn('ias => %o', ias);
matchFilter: function(aid, ma) {
iaMatchFilterAnnotationIds = [ aid ];
var iaClass = ma && ma.annotation && ma.annotation.iaClass;
$("#noalgo").css("visibility","hidden")
$("#noalgo").css("visibility","hidden");
$("#matchbutton").css("visibility","hidden");
$('.mfalgo-item').show();
if (iaClass) {
$('.mfalgo-item').hide();
Expand All @@ -220,6 +221,9 @@ console.warn('ias => %o', ias);
//console.log("NOALGO");
$("#noalgo").css("visibility","visible");
}
else{
$("#matchbutton").css("visibility","visible");
}

$('.ia-match-filter-dialog').show();
$('.mfalgo-item:hidden input').prop('checked', false);
Expand Down

0 comments on commit feef16d

Please sign in to comment.