=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/main.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/main.js 2010-02-15 14:49:54 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/main.js 2010-02-15 15:01:24 +0000
@@ -1,4 +1,8 @@
+// -----------------------------------------------------------------------------
+// Page init
+// -----------------------------------------------------------------------------
+
$( document ).ready( function()
{
if( $( window ).width() <= 800 ) // In case of 800 x 600 screens
@@ -29,6 +33,59 @@
}
} );
+// -----------------------------------------------------------------------------
+// Menu functions
+// -----------------------------------------------------------------------------
+
+var menuTimeout = 500;
+var closeTimer = null;
+var dropDownId = null;
+
+function showDropDown( id )
+{
+ cancelHideDropDownTimeout();
+
+ var newDropDownId = "#" + id;
+
+ if ( dropDownId != newDropDownId )
+ {
+ if ( dropDownId )
+ {
+ hideDropDown();
+ }
+
+ dropDownId = newDropDownId;
+
+ $( dropDownId ).show();
+ }
+}
+
+function hideDropDown()
+{
+ $( dropDownId ).hide();
+
+ dropDownId = null;
+}
+
+function hideDropDownTimeout()
+{
+ closeTimer = window.setTimeout( hideDropDown, menuTimeout );
+}
+
+function cancelHideDropDownTimeout()
+{
+ if ( closeTimer )
+ {
+ window.clearTimeout( closeTimer );
+
+ closeTimer = null;
+ }
+}
+
+// -----------------------------------------------------------------------------
+// Leftbar
+// -----------------------------------------------------------------------------
+
var leftBar = new LeftBar();
function LeftBar()
=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/main.vm'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/main.vm 2010-02-04 08:29:27 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/main.vm 2010-02-15 15:01:24 +0000
@@ -19,7 +19,6 @@
-