From 6fe63dcc592ec4ec8f858cfe1e6aa7473c19f9c9 Mon Sep 17 00:00:00 2001 From: Catouse Date: Tue, 22 Nov 2016 13:42:41 +0800 Subject: [PATCH] * finish task #2781. --- module/bug/css/browse.css | 8 +++++-- module/bug/js/browse.js | 2 +- module/bug/view/browse.html.php | 23 +++++++++++-------- module/my/css/common.css | 8 +++++-- module/my/js/common.js | 2 +- module/my/view/bug.html.php | 7 +++--- module/my/view/story.html.php | 7 +++--- module/product/css/browse.css | 9 ++++++-- module/product/js/browse.js | 5 ++-- module/product/view/browse.html.php | 33 ++++++++++++++++----------- module/productplan/css/view.css | 9 +++++--- module/productplan/js/view.js | 2 +- module/productplan/view/view.html.php | 33 ++++++++++++++++----------- module/project/css/task.css | 9 ++++++-- module/project/js/task.js | 2 +- module/project/view/task.html.php | 15 +++++++----- module/testcase/css/browse.css | 9 ++++++-- module/testcase/js/browse.js | 2 +- module/testcase/view/browse.html.php | 8 ++++--- 19 files changed, 123 insertions(+), 70 deletions(-) diff --git a/module/bug/css/browse.css b/module/bug/css/browse.css index 8a01602e3b..f0bd370a0f 100644 --- a/module/bug/css/browse.css +++ b/module/bug/css/browse.css @@ -5,7 +5,11 @@ .confirm1 {color:green; font-size:9px} .red{color:red;} -.dropdown-menu.with-search {padding-bottom: 34px; min-width: 150px; overflow: hidden; max-height: 305px} -.dropdown-menu > .menu-search {padding: 0; position: absolute; z-index: 0; bottom: 0; left: 0; right: 0} +.dropdown-menu.with-search {padding: 0; min-width: 150px; overflow: hidden; max-height: 302px;} .dropdown-menu > .menu-search .input-group {width:100%;} .dropdown-menu > .menu-search .input-group-addon {position: absolute; right: 10px; top: 0; z-index: 10; background: none; border: none; color: #666} +.dropdown-menu > .menu-search .form-control {border: none!important; box-shadow: none!important; border-top: 1px solid #ddd!important;} +.dropdown-list {display: block; padding: 0; max-height: 270px; overflow-y: auto;} +.dropdown-list > li > a {display: block; padding: 3px 20px; clear: both; font-weight: normal; line-height: 1.53846154; color: #141414; white-space: nowrap;} +.dropdown-list > li > a:hover, +.dropdown-list > li > a:focus {color: #1a4f85;text-decoration: none;background-color: #ddd;} diff --git a/module/bug/js/browse.js b/module/bug/js/browse.js index 550b231de9..b939022371 100644 --- a/module/bug/js/browse.js +++ b/module/bug/js/browse.js @@ -9,7 +9,7 @@ $(document).ready(function() }).on('keyup change paste', 'input', function() { var val = $(this).val().toLowerCase(); - var $options = $(this).closest('ul.dropdown-menu.with-search').find('.option'); + var $options = $(this).closest('.dropdown-menu.with-search').find('.option'); if(val == '') return $options.removeClass('hide'); $options.each(function() { diff --git a/module/bug/view/browse.html.php b/module/bug/view/browse.html.php index 5af222fd7c..23f6278747 100644 --- a/module/bug/view/browse.html.php +++ b/module/bug/view/browse.html.php @@ -148,14 +148,16 @@ js::set('bugBrowseType', ($browseType == 'bymodule' and $this->session->bugBrows $withSearch = count($modules) > 8; echo "'; } else { @@ -178,7 +180,8 @@ js::set('bugBrowseType', ($browseType == 'bymodule' and $this->session->bugBrows $withSearch = count($builds) > 4; echo "'; } else { @@ -210,15 +214,16 @@ js::set('bugBrowseType', ($browseType == 'bymodule' and $this->session->bugBrows echo html::select('assignedTo', $memberPairs, '', 'class="hidden"'); echo "