=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/javascript/dataElement.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/javascript/dataElement.js 2010-11-25 21:34:02 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/javascript/dataElement.js 2010-12-06 05:46:01 +0000
@@ -173,13 +173,13 @@
*/
function addCDEDataElements()
{
- var alvailableList = jQuery("#availableDataElements option");
+ var availableList = jQuery("#availableDataElements option");
jQuery("#selectedDataElements tr.placeholder").remove();
var selectedList = jQuery("#selectedDataElements")
- jQuery.each( alvailableList, function(i, item){
+ jQuery.each( availableList, function(i, item){
if( item.selected ){
var id = item.value;
var name = item.firstChild.nodeValue;
@@ -254,7 +254,7 @@
{
var inputs = jQuery("#selectedDataElements input[name|=factors]");
- jQuery.each(inputs, function(i, item ){
+ jQuery.each(inputs, function(i, item ){
removeValidatorRules( item );
addValidatorRules( item, {required:true, number:true});
});
@@ -296,8 +296,7 @@
hideById( id );
removeValidatorRulesById("selectedDEValidator");
removeValidatorRulesForFactors();
- }
-
+ }
}
function getFactors()
|