← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 1574: Added hove effect for help box hide icon

 

------------------------------------------------------------
revno: 1574
committer: Lars Helge Oeverland <larshelge@xxxxxxxxx>
branch nick: trunk
timestamp: Mon 2010-03-08 10:25:52 +0100
message:
  Added hove effect for help box hide icon
added:
  dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/images/hide_active.png
modified:
  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.vm


--
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.
=== added file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/images/hide_active.png'
Binary files dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/images/hide_active.png	1970-01-01 00:00:00 +0000 and dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/images/hide_active.png	2010-03-08 09:25:52 +0000 differ
=== 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 18:55:09 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/main.js	2010-03-08 09:25:52 +0000
@@ -20,7 +20,18 @@
     {
         $( this ).removeClass( "listHoverRow" );
     } );
-
+    
+    // Hover on rightbar close image
+    
+    $( "#hideRightBarImg" ).mouseover( function()
+    {
+    	$( this ).attr( "src", "../images/hide_active.png" );
+    } );
+    $( "#hideRightBarImg" ).mouseout( function()
+    {
+        $( this ).attr( "src", "../images/hide.png" );
+    } );
+    
     // Resize UI in case of 800 x 600 screen
 
     if( $( window ).width() <= 800 ) 

=== 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-25 18:35:33 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/main.vm	2010-03-08 09:25:52 +0000
@@ -124,7 +124,7 @@
     
     <div id="rightBar">
       <span id="hideRightBar"><a href="javascript:hideHelpContent()" title="$i18n.getString( 'close' )">
-        <img src="../images/hide.png" alt="$i18n.getString( 'close' )"></a>
+        <img id="hideRightBarImg" src="../images/hide.png" alt="$i18n.getString( 'close' )"></a>
       </span>
       <div id="rightBarContents"/>
     </div>