← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 1355: Applied the standard list style to the dataset completeness report output

 

------------------------------------------------------------
revno: 1355
committer: Lars Helge Oeverland <larshelge@xxxxxxxxx>
branch nick: trunk
timestamp: Wed 2010-01-27 22:18:07 +0100
message:
  Applied the standard list style to the dataset completeness report output
modified:
  dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/dataCompleteness.js
  dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/viewDataCompletenessForm.vm


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription.
=== modified file 'dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/dataCompleteness.js'
--- dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/dataCompleteness.js	2010-01-26 15:34:33 +0000
+++ dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/dataCompleteness.js	2010-01-27 21:18:07 +0000
@@ -163,26 +163,34 @@
         var cellA = row.insertCell( 0 );
         cellA.style.height = "32px";
         cellA.innerHTML = resultName;
+        cellA.className = mark ? "listAlternateRow" : "listRow" ;
         
         var cellB = row.insertCell( 1 );
         cellB.innerHTML = registrations;
+        cellB.className = mark ? "listAlternateRow" : "listRow" ;
         
         var cellC = row.insertCell( 2 );
         cellC.innerHTML = sources;
+        cellC.className = mark ? "listAlternateRow" : "listRow" ;
         
         var cellD = row.insertCell( 3 );
         cellD.innerHTML = percentage;
+        cellD.className = mark ? "listAlternateRow" : "listRow" ;
         
         var cellE = row.insertCell( 4 );
         cellE.innerHTML = registrationsOnTime;
+        cellE.className = mark ? "listAlternateRow" : "listRow" ;
                 
         var cellF = row.insertCell( 5 );
         cellF.innerHTML = percentageOnTime;
+        cellF.className = mark ? "listAlternateRow" : "listRow" ;
         
+        /*
         if ( mark )
         {
             row.style.backgroundColor = "#e2e2e2";
         }
+        */
         
         mark = mark ? false : true;
 	}

=== modified file 'dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/viewDataCompletenessForm.vm'
--- dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/viewDataCompletenessForm.vm	2010-01-27 21:06:39 +0000
+++ dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/viewDataCompletenessForm.vm	2010-01-27 21:18:07 +0000
@@ -51,7 +51,7 @@
 
 <div id="contentDiv">
 
-<table id="resultTable" name="resultTable" style="width:95%"></table>
+<table id="resultTable" name="resultTable" style="width:95%" class="listTable"></table>
 
 </div>