=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.ajax.js' --- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.ajax.js 2011-01-12 11:07:48 +0000 +++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.ajax.js 2011-01-17 06:08:02 +0000 @@ -50,7 +50,7 @@ this.loadAllDataElements = function( jQuerySelectionString ) { - this.loadDataElementsByGroup( ALL_KEY, jQuerySelectionString); + this.loadDataElementsByGroup( '0', jQuerySelectionString); } this.loadDataElementsByGroup = function( id, jQuerySelectionString ) === modified file 'dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/import/addExcelItem.vm' --- dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/import/addExcelItem.vm 2010-09-06 09:12:16 +0000 +++ dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/import/addExcelItem.vm 2011-01-17 06:08:02 +0000 @@ -39,7 +39,7 @@ - + === modified file 'dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/import/excelFormulaBuilder.vm' --- dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/import/excelFormulaBuilder.vm 2010-09-06 09:12:16 +0000 +++ dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/import/excelFormulaBuilder.vm 2011-01-17 06:08:02 +0000 @@ -18,13 +18,12 @@ $i18n.getString( 'minus' ) - + - - - + + + @@ -53,12 +52,12 @@ $i18n.getString( 'plus' ) $i18n.getString( 'minus' ) - + - - + + === modified file 'dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/javascript/excelitems.js' --- dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/javascript/excelitems.js 2010-12-10 07:45:59 +0000 +++ dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/javascript/excelitems.js 2011-01-17 06:08:02 +0000 @@ -9,7 +9,7 @@ if( type == 'NORMAL' ){ byId('expression-button' ).onclick = openExpressionBuild; }else { - byId('expression-button' ).onclick = caExpressionBuilderForm; + byId('expression-button' ).onclick = caExpressionBuilderForm; } } @@ -23,16 +23,10 @@ byId("formula").value = byId("expression").value; dataDictionary.loadDataElementGroups( "#divExpression select[id=dataElementGroup]" ); dataDictionary.loadAllDataElements( "#divExpression select[id=availableDataElements]" ); - $( "#availableDataElements" ).change(getOptionCombos); showPopupWindowById( 'divExpression', 600, 300 ); } -// Get option combos for selected dataelement -function getOptionCombos() { - dataDictionary.loadCategoryOptionComboByDE( byId("availableDataElements").value, "#divExpression select[id=optionCombos]" ); -} - // Insert operand into the Formular textbox function insertDataElementId() { @@ -73,7 +67,7 @@ function insertExpression() { var expression = "[*." + getFieldValue("divCategory select[id=optionCombos]") + "]"; - setFieldValue( 'divCategory textarea[id=formula]', getFieldValue( 'divCategory textarea[id=formula]') + expression ); + setFieldValue( 'divCategory textarea[id=formula]', getFieldValue( 'divCategory textarea[id=formula]') + expression ); } // Update expression for item @@ -86,8 +80,10 @@ } // Get option combos for selected dataelement -function getOptionCombos(id, target) { +function getOptionCombos(id, target, button) +{ dataDictionary.loadCategoryOptionComboByDE( id, target); + disable( button ); } // -----------------------------------------------------------------------