dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #20267
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 9178: Focus on search field in dashboard
------------------------------------------------------------
revno: 9178
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
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 );