Skip to content

Commit

Permalink
Show the first provider fields automatically without clicking "Add
Browse files Browse the repository at this point in the history
Provider" when Adding a New Encounter - TRUNK-3344
  • Loading branch information
lluismf authored and wluyima committed Mar 8, 2013
1 parent 58ac620 commit ca2960a
Showing 1 changed file with 10 additions and 0 deletions.
Expand Up @@ -430,6 +430,16 @@
 
<input type="button" value='<openmrs:message code="general.cancel"/>' onclick="history.go(-1); return; document.location='index.htm?autoJump=false&phrase=<request:parameter name="phrase"/>'">
</form>

<!-- If new encounter add a provider row by default -->
<c:if test="${encounter.encounterId == null}">
<script>
var providerIds = document.getElementsByName("providerIds");
if(providerIds.length == 1) {
addProvider();
}
</script>
</c:if>

<c:if test="${encounter.encounterId != null}">
<br/>
Expand Down

0 comments on commit ca2960a

Please sign in to comment.