← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 13367: Codestyle

 

------------------------------------------------------------
revno: 13367
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Sat 2013-12-21 18:02:42 +0100
message:
  Codestyle
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-12-20 22:14:08 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js	2013-12-21 17:02:42 +0000
@@ -2387,20 +2387,20 @@
 }
 
 function insertOptionSets() {
-  $('.entryoptionset').each( function( idx, item ) {
-    var optionSetKey = splitFieldId(item.id);
-
-    if( multiOrganisationUnit ) {
-      item = optionSetKey.organisationUnitId + '-' + optionSetKey.dataElementId + '-' + optionSetKey.optionComboId;
-    } else {
-      item = optionSetKey.dataElementId + '-' + optionSetKey.optionComboId;
-    }
-
-    item = item + '-val';
-    optionSetKey = optionSetKey.dataElementId + '-' + optionSetKey.optionComboId;
-
-    autocompleteOptionSetField(item, optionSets[optionSetKey].uid);
-  } );
+    $( '.entryoptionset').each( function( idx, item ) {
+    	var optionSetKey = splitFieldId(item.id);
+
+        if ( multiOrganisationUnit ) {
+        	item = optionSetKey.organisationUnitId + '-' + optionSetKey.dataElementId + '-' + optionSetKey.optionComboId;
+        } 
+        else {
+        	item = optionSetKey.dataElementId + '-' + optionSetKey.optionComboId;
+        }
+
+        item = item + '-val';
+        optionSetKey = optionSetKey.dataElementId + '-' + optionSetKey.optionComboId;
+        autocompleteOptionSetField(item, optionSets[optionSetKey].uid);
+    } );
 }
 
 function autocompleteOptionSetField( idField, optionSetUid ) {