Skip to content

Commit

Permalink
Fix tabs and spacing
Browse files Browse the repository at this point in the history
Fixes #5731
  • Loading branch information
syncguru authored and vboctor committed Jan 26, 2017
1 parent 8c77d68 commit 2b18e49
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
13 changes: 6 additions & 7 deletions core/layout_api.php
Expand Up @@ -332,9 +332,8 @@ function layout_body_javascript() {
html_javascript_link( 'bootstrap-datetimepicker-' . DATETIME_PICKER_VERSION . '.min.js' );

# listjs
html_javascript_link( 'list-' . LISTJS_VERSION . '.min.js' );

}
html_javascript_link( 'list-' . LISTJS_VERSION . '.min.js' );
}

# theme scripts
html_javascript_link( 'ace-extra.min.js' );
Expand Down Expand Up @@ -628,9 +627,9 @@ function layout_navbar_projects_list( $p_project_id = null, $p_include_all_proje
echo '<li>';
echo '<div id="projects-list">';
echo '<div class="searchbox">';
echo '<input class="search form-control input-sm margin-left-8 margin-right-8" placeholder="' . lang_get( 'search' ) . '" />';
echo '</div>';
echo '<ul class="list dropdown-yellow no-margin">';
echo '<input class="search form-control input-sm margin-left-8 margin-right-8" placeholder="' . lang_get( 'search' ) . '" />';
echo '</div>';
echo '<ul class="list dropdown-yellow no-margin">';

foreach( $t_project_ids as $t_id ) {
if( $p_can_report_only ) {
Expand All @@ -648,7 +647,7 @@ function layout_navbar_projects_list( $p_project_id = null, $p_include_all_proje

echo '</ul>';
echo '</div>';
echo '</li>';
echo '</li>';
}

/**
Expand Down
10 changes: 4 additions & 6 deletions js/common.js
Expand Up @@ -48,13 +48,13 @@ $(document).ready( function() {
ToggleDiv( t_div );
});

var options = {
valueNames: [ 'project-link' ]
};
var options = {
valueNames: [ 'project-link' ]
};
var list = new List('projects-list', options);
if(list.items.length <= 10) {
$('#projects-list .searchbox').hide();
}
}

$('.widget-box').on('shown.ace.widget' , function(event) {
var t_id = $(this).attr('id');
Expand Down Expand Up @@ -360,8 +360,6 @@ $(document).ready( function() {
$('tr[id=bugnote-attach-files]').show();
}
});


});

function setBugLabel() {
Expand Down

0 comments on commit 2b18e49

Please sign in to comment.