From 5812a7e6d79bfbcca2a426296e818874f425fd67 Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Thu, 24 Feb 2011 14:01:06 +0000 Subject: [PATCH] * fix the error when click the search link. * slite the js from browseCustom.html.php. --- module/bug/js/browse.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/module/bug/js/browse.js b/module/bug/js/browse.js index 5aa41bc09d..9d98f875c8 100644 --- a/module/bug/js/browse.js +++ b/module/bug/js/browse.js @@ -2,6 +2,7 @@ function browseByModule(active) { $('#treebox').removeClass('hidden'); + $('.divider').removeClass('hidden'); $('#bymoduleTab').addClass('active'); $('#querybox').addClass('hidden'); $('#' + active + 'Tab').removeClass('active'); @@ -10,6 +11,7 @@ function browseByModule(active) function browseBySearch(active) { $('#treebox').addClass('hidden'); + $('.divider').addClass('hidden'); $('#querybox').removeClass('hidden'); $('#bymoduleTab').removeClass('active'); $('#' + active + 'Tab').removeClass('active'); @@ -21,4 +23,10 @@ $(document).ready(function() $("a.iframe").colorbox({width:640, height:420, iframe:true, transition:'none'}); $('#' + browseType + 'Tab').addClass('active'); $('#module' + moduleID).addClass('active'); + + /* If customed and the browse is ie6, remove the ie6.css. */ + if(customed && $.browser.msie && Math.floor(parseInt($.browser.version)) == 6) + { + $("#browsecss").attr('href', ''); + } });