dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #25246
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 12472: remove some unused variables in activityPlan.js
------------------------------------------------------------
revno: 12472
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2013-10-07 15:22:32 +0200
message:
remove some unused variables in activityPlan.js
modified:
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/activityPlan.js
--
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-caseentry/src/main/webapp/dhis-web-caseentry/javascript/activityPlan.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/activityPlan.js 2013-08-06 07:12:39 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/activityPlan.js 2013-10-07 13:22:32 +0000
@@ -36,40 +36,37 @@
{
setFieldValue('listAll', "true");
hideById('listPatientDiv');
- contentDiv = 'listPatientDiv';
$('#contentDataRecord').html('');
var facilityLB = $('input[name=facilityLB]:checked').val();
var programId = getFieldValue('programIdAddPatient');
- var searchTexts = "stat_" + programId
- + "_" + getFieldValue('startDueDate')
- + "_" + getFieldValue('endDueDate');
- if(facilityLB=='selected')
- {
- searchTexts += "_" + getFieldValue('orgunitId');
- }
- else if(facilityLB=='all')
- {
- searchTexts += "_0";
- }
- else if(facilityLB=='childrenOnly'){
- searchTexts += "_-1";
- }
- searchTexts += "_false_" + getFieldValue('statusEvent');
+ var searchTexts = "stat_" + programId
+ + "_" + getFieldValue('startDueDate')
+ + "_" + getFieldValue('endDueDate');
+
+ if( facilityLB == 'selected' ) {
+ searchTexts += "_" + getFieldValue('orgunitId');
+ }
+ else if( facilityLB == 'all' ) {
+ searchTexts += "_0";
+ }
+ else if( facilityLB == 'childrenOnly' ) {
+ searchTexts += "_-1";
+ }
+
+ searchTexts += "_false_" + getFieldValue('statusEvent');
showLoader();
- jQuery('#listPatientDiv').load('getActivityPlanRecords.action',
- {
- programId:programId,
- listAll:false,
- searchTexts: searchTexts
- },
- function()
- {
- showById('colorHelpLink');
- showById('listPatientDiv');
- setTableStyles();
- hideLoader();
- });
+
+ jQuery('#listPatientDiv').load('getActivityPlanRecords.action', {
+ programId: programId,
+ listAll: false,
+ searchTexts: searchTexts
+ }, function() {
+ showById('colorHelpLink');
+ showById('listPatientDiv');
+ setTableStyles();
+ hideLoader();
+ });
}
function exportActitityList( type )