← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 9422: Minor

 

------------------------------------------------------------
revno: 9422
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2013-01-02 23:05:25 +0100
message:
  Minor
modified:
  dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js'
--- dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js	2013-01-02 21:52:37 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js	2013-01-02 22:05:25 +0000
@@ -738,7 +738,8 @@
 
     var dataSetList = [];
 
-    $.safeEach(orgUnitDataSets, function(idx, item) {
+    $.safeEach( orgUnitDataSets, function( idx, item ) 
+    {
         var dataSetId = orgUnitDataSets[idx];
         var dataSetName = dataSets[dataSetId].name;
 
@@ -746,7 +747,7 @@
         row['id'] = dataSetId;
         row['name'] = dataSetName;
         dataSetList[idx] = row;
-    });
+    } );
 
     dataSetList.sort( function( a, b )
     {
@@ -760,19 +761,19 @@
 {
     var dataSetList = [];
 
-    $.safeEach(orgUnits, function( idx, item )
+    $.safeEach( orgUnits, function( idx, item )
     {
         dataSetList.push.apply( dataSetList, getSortedDataSetList(item) )
     } );
 
     var filteredDataSetList = [];
 
-    $.safeEach(dataSetList, function( idx, item ) 
+    $.safeEach( dataSetList, function( idx, item ) 
     {
         var formType = dataSets[item.id].type;
         var found = false;
 
-        $.safeEach(filteredDataSetList, function( i, el ) 
+        $.safeEach( filteredDataSetList, function( i, el ) 
         {
             if( item.name == el.name )
             {
@@ -832,7 +833,7 @@
         {
             $( '#selectedDataSetId' ).append( '<optgroup label="' + i18n_childrens_forms + '">' );
 
-            $.safeEach(childrenDataSets, function( idx, item )
+            $.safeEach( childrenDataSets, function( idx, item )
             {
                 $( '<option />' ).attr( 'data-multiorg', true).attr( 'value', item.id).html(item.name).appendTo( '#selectedDataSetId' );
             } );
@@ -904,9 +905,10 @@
     	addOptionById( 'selectedPeriodId', '-1', i18n_no_periods_click_prev_year_button );
     }
     
-    $.safeEach(periods, function(idx, item) {
+    $.safeEach( periods, function( idx, item ) 
+    {
         addOptionById( 'selectedPeriodId', item.id, item.name );
-    });
+    } );
 }
 
 // -----------------------------------------------------------------------------
@@ -945,9 +947,10 @@
         	addOptionById( 'selectedPeriodId', '-1', i18n_no_periods_click_prev_year_button );
         }
         
-        $.safeEach(periods, function(idx, item) {
+        $.safeEach( periods, function( idx, item )
+        {
             addOptionById( 'selectedPeriodId', item.id, item.name );
-        });
+        } );
 
         var previousPeriodType = currentDataSetId ? dataSets[currentDataSetId].periodType : null;