=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.js' --- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.js 2011-09-26 06:29:35 +0000 +++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.js 2011-09-26 09:31:56 +0000 @@ -1336,7 +1336,7 @@ /** * Used to export PDF file by the given type and the filter params in page */ -function exportPdfByType( params ) +function exportPdfByType( type, params ) { if ( jQuery( "table.listTable tbody tr" ).length == 0 ) { @@ -1347,13 +1347,7 @@ var form = byId( 'filterKeyForm' ); form.action = 'exportToPdf.action?' + params; form.submit(); -} - -function validateExportPDF() -{ - var exportButton = jQuery( 'input[type=button][id=exportPDF]' ); - if ( byId( 'key' ).value != byId( 'oldKey' ).value ) exportButton.attr( 'disabled', true ); - else exportButton.attr( 'disabled', false ); + form.action = type + '.action'; } /** === modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/macros.vm' --- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/macros.vm 2011-09-26 06:28:44 +0000 +++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/macros.vm 2011-09-26 09:31:56 +0000 @@ -119,8 +119,8 @@
=== modified file 'dhis-2/dhis-web/dhis-web-validationrule/src/main/webapp/dhis-web-validationrule/validationRule.vm' --- dhis-2/dhis-web/dhis-web-validationrule/src/main/webapp/dhis-web-validationrule/validationRule.vm 2011-09-26 06:28:44 +0000 +++ dhis-2/dhis-web/dhis-web-validationrule/src/main/webapp/dhis-web-validationrule/validationRule.vm 2011-09-26 09:31:56 +0000 @@ -7,7 +7,7 @@ { var params = "type=" + type; - exportPdfByType( params ); + exportPdfByType( type, params ); } var i18n_confirm_delete = '$encoder.jsEscape( $i18n.getString( "confirm_delete_validation_rule" ) , "'")'; @@ -27,9 +27,9 @@#filterDiv( "showValidationRuleForm" ) | +#filterDiv( "validationRule" ) | - + |