=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/addProgramStageSectionForm.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/addProgramStageSectionForm.vm 2012-10-26 03:26:57 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/addProgramStageSectionForm.vm 2012-10-26 03:49:36 +0000
@@ -3,6 +3,11 @@
{
validation( 'programStageSectionForm', function(form){
form.submit();
+ }, function(){
+ selectAllById('dataElementIds');
+ if(jQuery("#dataElementIds option").length > 0 ){
+ setFieldValue('hasDataElement', 'true');
+ }
});
checkValueIsExist( "name", "validateProgramStageSection.action");
byId('name').focus();
@@ -11,11 +16,11 @@
$i18n.getString( "create_new_program_stage_section" )
-$programStage.name
+$programStage.name
-
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/updateProgramStageSectionForm.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/updateProgramStageSectionForm.vm 2012-10-26 03:26:57 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/updateProgramStageSectionForm.vm 2012-10-26 03:49:36 +0000
@@ -2,7 +2,12 @@
jQuery( document ).ready( function()
{
validation( 'programStageSectionForm', function(form){
+ selectAllById('dataElementIds');
form.submit();
+ }, function(){
+ if(jQuery("#dataElementIds option").length > 0 ){
+ setFieldValue('hasDataElement', 'true');
+ }
});
checkValueIsExist( "name", "validateProgramStageSection.action", {id:getFieldValue('id')});
@@ -12,9 +17,9 @@
$i18n.getString( "update_program_stage_section" )
-$programStage.name
+$programStage.name
-