Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added number of items from History to details on select
  • Loading branch information
k-joseph committed Aug 19, 2015
1 parent f0dc9d8 commit fe915bb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions omod/src/main/webapp/resources/scripts/views_factory.js
Expand Up @@ -728,14 +728,16 @@ function navigationIndicesUpdateLogic(i, numberOfResults) {
}

function load_single_obs_history(obs_id) {
resultText = '<h3>History</h3>';
var obs_obj = get_single_obs_by_id(obs_id);
var obs_name = obs_obj.concept_name;
var history_json = get_obs_history_json_by_name(obs_name);
var oRed = '';
var oAddition = '';
var time1 = new Date(parseInt(obs_obj.date));

var numberInHistory = history_json.length === 0 ? 1 : 1 + history_json.length;

resultText = '<h3>History (' + numberInHistory + ')</h3>';

if (obs_obj.value < obs_obj.normal_low) {
oRed = ' red ';
oAddition = ' less_then_normal ';
Expand Down

0 comments on commit fe915bb

Please sign in to comment.