← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 13424: Minor fix in event tabular report.

 

------------------------------------------------------------
revno: 13424
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2013-12-25 16:22:26 +0700
message:
  Minor fix in event tabular report.
modified:
  dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/app/app.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/app/app.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/app/app.js	2013-12-25 03:01:47 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/app/app.js	2013-12-25 09:22:26 +0000
@@ -4634,7 +4634,12 @@
 											
 											// Filter value fields
 											Ext.getCmp('filterPanel').removeAll();
-										} 
+										},
+										specialKey :  function(field,e) {
+											if(e.getKey() === e.TAB){
+												Ext.getCmp('dateRangeDiv').expand();
+											}
+										}
 									}
 								}
 								]
@@ -4708,6 +4713,19 @@
 													change:function(){
 														var endDate =  TR.cmp.settings.endDate.getValue();
 														Ext.getCmp('startDate').setMaxValue( endDate );
+													},
+													specialKey :  function(field,e) {
+														if(e.getKey() === e.TAB){
+															Ext.getCmp('dateRangeDiv').collapse();
+															if(Ext.getCmp('reportTypeGroup').getValue().reportType=='true')
+															{
+																Ext.getCmp('orgunitDiv').expand();
+															}
+															else
+															{
+																Ext.getCmp('relativePeriodsDiv').expand();
+															}
+														}
 													}
 												}
 											}
@@ -5835,7 +5853,7 @@
                 if (TR.datatable.datatable) {
                     TR.datatable.datatable.setHeight( TR.util.viewport.getSize().y - 68 );
                 }
-            } 
+            }
         }
     });