* adjust for only test.
This commit is contained in:
+9
-11
@@ -1,36 +1,34 @@
|
||||
$(document).ready(function()
|
||||
$(function()
|
||||
{
|
||||
if(browseType == 'bysearch') ajaxGetSearchForm();
|
||||
if($('#bugList thead th.w-title').width() < 150) $('#bugList thead th.w-title').width(150);
|
||||
|
||||
if(flow == 'onlyTest')
|
||||
{
|
||||
$('#modulemenu > .nav').append($('#featurebar > .submenu').html());
|
||||
toggleSearch();
|
||||
|
||||
$(".export").modalTrigger({width:650, type:'iframe'});
|
||||
|
||||
$('#modulemenu > .nav > li').removeClass('active');
|
||||
$('#modulemenu > .nav > li[data-id=' + browseType + ']').addClass('active');
|
||||
$('#subNavbar > .nav > li').removeClass('active');
|
||||
$('#subNavbar > .nav > li[data-id=' + browseType + ']').addClass('active');
|
||||
|
||||
var navWidth = $('#modulemenu > .nav').width();
|
||||
var navWidth = $('#subNavbar > .nav').width();
|
||||
var leftWidth = 0;
|
||||
var rightWidth = 0;
|
||||
|
||||
$rightNav = $('#modulemenu > .nav > li.right');
|
||||
$rightNav = $('#subNavbar > .nav > li.right');
|
||||
rightLength = $rightNav.length;
|
||||
for(i = 0; i < rightLength; i++) rightWidth += $rightNav.eq(i).width();
|
||||
|
||||
var maxWidth = navWidth - $('#modulemenu > .nav > #bysearchTab').width() - rightWidth - 100;
|
||||
var maxWidth = navWidth - $('#subNavbar > .nav > #bysearchTab').width() - rightWidth - 100;
|
||||
|
||||
$('#modulemenu > .nav > li:not(.right)').each(function()
|
||||
$('#subNavbar > .nav > li:not(.right)').each(function()
|
||||
{
|
||||
if(leftWidth > maxWidth)
|
||||
{
|
||||
if($(this).attr('id') != 'moreMenus' && $(this).attr('id') != 'bysearchTab')
|
||||
{
|
||||
$('#moreMenus').removeClass('hidden');
|
||||
$('#moreMenus > ul').append($(this)[0]);
|
||||
$('#subNavbar').removeClass('hidden');
|
||||
$('#subNavbar > ul').append($(this)[0]);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user