dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #37546
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 19176: Small fix in Add/Update Program rule form
------------------------------------------------------------
revno: 19176
committer: Tran Chau<tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Sun 2015-05-24 22:56:22 +0700
message:
Small fix in Add/Update Program rule form
modified:
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/addProgramRule.vm
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/javascript/programRule.js
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/updateProgramRule.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-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/addProgramRule.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/addProgramRule.vm 2015-05-12 08:49:50 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/addProgramRule.vm 2015-05-24 15:56:22 +0000
@@ -132,9 +132,9 @@
<input type='button' class="small-button" onclick='insertVariable( this );' value="==" />
<input type='button' class="small-button" onclick='insertVariable( this );' value="!=" />
- <input type='button' class="small-button" onclick='insertOperator( "!" );' value="!" />
- <input type='button' class="small-button" onclick='insertOperator( "&&" );' value="&&" />
- <input type='button' class="small-button" onclick='insertOperator( "||" );' value="||" />
+ <input type='button' class="small-button" onclick='insertVariable( this );' value="!" />
+ <input type='button' class="small-button" onclick='insertVariable( this );' value="&&" />
+ <input type='button' class="small-button" onclick='insertVariable( this );' value="||" />
</td>
</tr>
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/javascript/programRule.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/javascript/programRule.js 2015-05-12 08:49:50 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/javascript/programRule.js 2015-05-24 15:56:22 +0000
@@ -200,7 +200,7 @@
{
var json_Data = '{ '
+ '"name": "' + variableName + '",'
- + '"sourceType": "' + sourceType + '",'
+ + '"programRuleVariableSourceType": "' + sourceType + '",'
+ '"dataElement": { "id" : "' + dataElementId + '"},'
+ '"program": { "id" :"' + getFieldValue("programId") + '"},'
+ '"programStage": { "id" : "' + programStageId + '"}'
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/updateProgramRule.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/updateProgramRule.vm 2015-05-12 08:49:50 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/updateProgramRule.vm 2015-05-24 15:56:22 +0000
@@ -133,9 +133,9 @@
<input type='button' class="small-button" onclick='insertVariable( this );' value="==" />
<input type='button' class="small-button" onclick='insertVariable( this );' value="!=" />
- <input type='button' class="small-button" onclick='insertOperator( "!" );' value="!" />
- <input type='button' class="small-button" onclick='insertOperator( "&&" );' value="&&" />
- <input type='button' class="small-button" onclick='insertOperator( "||" );' value="||" />
+ <input type='button' class="small-button" onclick='insertVariable( this );' value="!" />
+ <input type='button' class="small-button" onclick='insertVariable( this );' value="&&" />
+ <input type='button' class="small-button" onclick='insertVariable( this );' value="||" />
</td>
</tr>