Skip to content

Commit

Permalink
fixed bug where button more conditions button showing for 3 diseases …
Browse files Browse the repository at this point in the history
…and fixed issue where other-undefined disease was being showed for self
  • Loading branch information
regulator95 committed Sep 8, 2017
1 parent d61b1c2 commit 79dcf5c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions js/fhh.js
Original file line number Diff line number Diff line change
Expand Up @@ -1877,11 +1877,16 @@ function createConditionsList(family_member, listType) {
};
}
else {
html += '<li class="conditionsEntry">' + $.t("diseases:" + value['Disease Code']) + '</li>';
if (value['Disease Code']=='other'|| value['Disease Code']=='other-undefined') {
html += '<li class="conditionsEntry">' + value['Detailed Disease Name'] + '</li>';
}
else {
html += '<li class="conditionsEntry">' + $.t("diseases:" + value['Disease Code']) + '</li>';
};
};
});
html += '</ul>'
if (family_member['Health History'].length>2) {
if (family_member['Health History'].length>3) {
html+= '<div class="readMore"><button class="readMoreButton" value="0">' + $.t('fhh_js.more') + '</button></div></div>';
};
};
Expand Down

0 comments on commit 79dcf5c

Please sign in to comment.