------------------------------------------------------------
revno: 9178
committer: Lars Helge Ă˜verland <[email protected]>
branch nick: dhis2
timestamp: Wed 2012-12-05 14:49:12 +0100
message:
  Focus on search field in dashboard
modified:
  
dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/dropdown.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-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/dropdown.js'
--- dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/dropdown.js	2012-10-05 16:00:19 +0000
+++ dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/dropdown.js	2012-12-05 13:49:12 +0000
@@ -5,8 +5,15 @@
 	
 	$( document ).click( hideSearch );
 
+	$( "#searchField" ).focus( function() {
+		$( "#searchDiv" ).css( "border-color", "#999" );
+	} ).blur( function() {
+		$( "#searchDiv" ).css( "border-color", "#ccc" );
+	} );
+
+	$( "#searchField" ).focus();
 	$( "#searchField" ).keyup( search );
-		
+	
 	var viewportWidth = parseInt( $( window ).width() );
 	var linkWidth = parseInt( 338 );
 	var chartWidth = parseInt( 325 );

_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp

Reply via email to