=== modified file 'dhis-2/dhis-web/dhis-web-tracker-capture/src/main/webapp/dhis-web-tracker-capture/scripts/tracker-capture.js' --- dhis-2/dhis-web/dhis-web-tracker-capture/src/main/webapp/dhis-web-tracker-capture/scripts/tracker-capture.js 2014-07-17 10:35:43 +0000 +++ dhis-2/dhis-web/dhis-web-tracker-capture/src/main/webapp/dhis-web-tracker-capture/scripts/tracker-capture.js 2014-07-21 09:39:19 +0000 @@ -126,17 +126,24 @@ } }); - //dhis2.availability.startAvailabilityCheck(); + //dhis2.availability.startAvailabilityCheck(); - var selectParentWidth = $("#selectDropDownParent").width(); - $("#selectDropDown").width(selectParentWidth); - $(".select-drop-down-button").on('click', function(e) { + $(".select-dropdown-button").on('click', function(e) { + $("#selectDropDown").width($("#selectDropDownParent").width()); e.stopPropagation(); $("#selectDropDown").dropdown('toggle'); }); - var searchParentWidth = $("#searchDropDownParent").width(); - $("#searchDropDown").width(searchParentWidth); + $(".select-dropdown-caret").on('click', function(e) { + $("#selectDropDown").width($("#selectDropDownParent").width()); + e.stopPropagation(); + $("#selectDropDown").dropdown('toggle'); + }); + + $(".search-dropdown-button").on('click', function() { + $("#searchDropDown").width($("#searchDropDownParent").width()); + }); + $('#searchDropDown').on('click', "[data-stop-propagation]", function(e) { e.stopPropagation(); }); @@ -144,10 +151,8 @@ }); $(window).resize(function() { - var searchWidth = $("#searchDropDownParent").width(); - var selectWidth = $("#selectDropDownParent").width(); - $("#selectDropDown").width(selectWidth); - $("#searchDropDown").width(searchWidth); + $("#selectDropDown").width($("#selectDropDownParent").width()); + $("#searchDropDown").width($("#searchDropDownParent").width()); }); function ajax_login() === modified file 'dhis-2/dhis-web/dhis-web-tracker-capture/src/main/webapp/dhis-web-tracker-capture/styles/style.css' --- dhis-2/dhis-web/dhis-web-tracker-capture/src/main/webapp/dhis-web-tracker-capture/styles/style.css 2014-07-17 10:35:43 +0000 +++ dhis-2/dhis-web/dhis-web-tracker-capture/src/main/webapp/dhis-web-tracker-capture/styles/style.css 2014-07-21 09:39:19 +0000 @@ -700,12 +700,16 @@ text-decoration: underline; } -.select-drop-down-button{ +.select-dropdown-button{ text-align: left; padding: 2px 4px; color: #999; } +.select-dropdown-caret { + margin-bottom: 5px; + margin-top: 5px; +} .dropdown-menu { margin: -5px 0 0 0; } @@ -744,7 +748,7 @@ width: 30%; } -.without-border-radius{ +.search-dropdown-button { border-radius: 0; } === modified file 'dhis-2/dhis-web/dhis-web-tracker-capture/src/main/webapp/dhis-web-tracker-capture/views/home.html' --- dhis-2/dhis-web/dhis-web-tracker-capture/src/main/webapp/dhis-web-tracker-capture/views/home.html 2014-07-15 13:13:11 +0000 +++ dhis-2/dhis-web/dhis-web-tracker-capture/src/main/webapp/dhis-web-tracker-capture/views/home.html 2014-07-21 09:39:19 +0000 @@ -42,11 +42,11 @@
-
- - +
+ +
-
+
- +