← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 11101: Fixed bug - Not display all sections of entry form when to select All option in Filter in section...

 

------------------------------------------------------------
revno: 11101
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2013-05-30 10:17:31 +0700
message:
  Fixed bug - Not display all sections of entry form when to select All option in Filter in section box.
modified:
  dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/entry.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-caseentry/src/main/webapp/dhis-web-caseentry/javascript/entry.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/entry.js	2013-05-28 07:32:37 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/entry.js	2013-05-30 03:17:31 +0000
@@ -1186,7 +1186,7 @@
 
 function filterOnSection()
 {
-    var value = 'sec_' + $( '#filterDataSetSection option:selected' ).val();
+    var value = $( '#filterDataSetSection option:selected' ).val();
     
     if ( value == 'all' )
     {
@@ -1195,6 +1195,6 @@
     else
     {
         $( '.formSection' ).hide();
-        $( '#' + value ).show();
+        $( '#sec_' + value ).show();
     }
 }