=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/updateProgramStageForm.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/updateProgramStageForm.vm 2015-03-19 11:14:12 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/updateProgramStageForm.vm 2015-03-31 05:00:23 +0000
@@ -18,11 +18,13 @@
#tblDynamicAttributesJavascript()
selectAllById('selectedIndicators');
-
- var periodType = byId('periodTypeName').value;
- if( periodType != ''){
- setFieldValue('standardInterval','');
- }
+
+ if( byId('periodTypeName') != null ){
+ var periodType = byId('periodTypeName').value;
+ if( periodType != ''){
+ setFieldValue('standardInterval','');
+ }
+ }
/*var customStandardInterval = byId('customStandardInterval').checked;
if( customStandardInterval ){
@@ -85,6 +87,7 @@
checked = allowFutureDate.attr('checked') ? true : false;
allowFutureDates.append( "" );
});
+
jQuery(".daysAllowedSendMessage").each( function( i, item ){
var days = (jQuery(item).attr('realvalue')==undefined) ? 0 : jQuery(item).attr('realvalue');
daysAllowedSendMessages.append( "" );