dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #00124
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 40: Removed speed from the menu appearance and got to default. Fixes crashes in Webkit based browsers...
------------------------------------------------------------
revno: 40
committer: Saptarshi <sunbiz@xxxxxxxxx>
branch nick: trunk
timestamp: Wed 2009-03-11 11:45:48 +0530
message:
Removed speed from the menu appearance and got to default. Fixes crashes in Webkit based browsers like Chrome, Safari, Konqueror
modified:
dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/menu.js
=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/menu.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/menu.js 2009-03-03 16:46:36 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/menu.js 2009-03-11 06:15:48 +0000
@@ -1,44 +1,34 @@
-
var menuTimeout = 500;
var closeTimer = null;
var dropDownId = null;
-function showDropDown( id )
-{
- cancelHideDropDownTimeout();
-
- var newDropDownId = "#" + id;
-
- if ( dropDownId != newDropDownId )
- {
- if ( dropDownId )
+function showDropDown( id ){
+ cancelHideDropDownTimeout();
+ var newDropDownId = "#" + id;
+
+ if ( dropDownId != newDropDownId )
{
- hideDropDown();
- }
-
- dropDownId = newDropDownId;
-
- $( dropDownId ).show( "fast" );
- }
-}
-
-function hideDropDown()
-{
- $( dropDownId ).hide( "fast" );
-
- dropDownId = null;
-}
-
-function hideDropDownTimeout()
-{
- closeTimer = window.setTimeout( hideDropDown, menuTimeout );
-}
-
-function cancelHideDropDownTimeout()
-{
- if ( closeTimer )
- {
- window.clearTimeout( closeTimer );
- closeTimer = null;
- }
+ 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;
+ }
}
--
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.