diff --git a/module/productplan/css/view.css b/module/productplan/css/view.css index a79e9f7fee..dd1cba76e4 100644 --- a/module/productplan/css/view.css +++ b/module/productplan/css/view.css @@ -1,14 +1,6 @@ -.tabs{position:relative;} -.tabs .nav-tabs>li{margin-bottom:0px;} -.tabs .tab-content .tab-pane .action{position: absolute; right: 0px; top: 0px;} -.tabs .tab-content .tab-pane #queryBox{margin:0px; border-left:1px solid #ddd; border-right:1px solid #ddd;} -.tabs .tab-content .tab-pane #queryBox form{padding-left:0px;} - .hide-side .col-main {width: 100%;} .hide-side .col-side .main-side {width: 0; display: none;} -#unlinkBugList, #unlinkStoryList{margin-bottom:5px;} - .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} @@ -19,12 +11,9 @@ .dropdown-list > li > a:focus {color: #1a4f85;text-decoration: none;background-color: #ddd;} .checkbox.btn{margin-top:0px} -#unlinkStoryList, #unlinkBugList{border:1px solid #ddd;} - -.table-footer .text {line-height: 30px;} -.table-footer .table-actions {margin-right: 10px;} #planInfo > div {padding-top: 15px;} -#queryBox form {margin: 0px !important;} -#moreOrLite {right: 0px !important;} +.linkBox #searchForm .form-actions {padding-bottom: 5px;} +.linkBox .table-header {padding: 8px 15px; border-bottom: 1px solid #cbd0db;} +#unlinkStoryList, #unlinkBugList {border-top: 1px solid #cbd0db;} \ No newline at end of file diff --git a/module/productplan/js/view.js b/module/productplan/js/view.js index 3adf829b46..8bff5c1a26 100644 --- a/module/productplan/js/view.js +++ b/module/productplan/js/view.js @@ -1,17 +1,16 @@ -function showLink(planID, type, orderBy, param) +function showLink(buildID, type, param) { var method = type == 'story' ? 'linkStory' : 'linkBug'; $.get(createLink('productplan', method, 'planID=' + planID + (typeof(param) == 'undefined' ? '' : param) + (typeof(orderBy) == 'undefined' ? '' : "&orderBy=" + orderBy)), function(data) { - var obj = type == 'story' ? '.tab-pane#stories .linkBox' : '.tab-pane#bugs .linkBox'; - $(obj).html(data); - $('#' + type + 'List').closest('form').hide(); - - var formID = type == 'story' ? '#unlinkedStoriesForm' : '#unlinkedBugsForm'; - - $('[data-ride="table"]').table(); + var $pane = $(type == 'story' ? '#stories' : '#bugs'); + $pane.find('.main-table').hide(); + var $linkBox = $pane.find('.linkBox').html(data).removeClass('hidden'); + $linkBox.find('[data-ride="table"]').table(); + $.toggleQueryBox(true, $linkBox.find('#queryBox')); }); } + $(function() { if(link == 'true') showLink(planID, type, orderBy, param); diff --git a/module/productplan/view/linkbug.html.php b/module/productplan/view/linkbug.html.php index 0bba559619..b7feb46fef 100644 --- a/module/productplan/view/linkbug.html.php +++ b/module/productplan/view/linkbug.html.php @@ -13,8 +13,8 @@