diff --git a/main/inc/lib/javascript/jquery.lp_minipanel.js b/main/inc/lib/javascript/jquery.lp_minipanel.js index ce89033b43..43c2ab509e 100644 --- a/main/inc/lib/javascript/jquery.lp_minipanel.js +++ b/main/inc/lib/javascript/jquery.lp_minipanel.js @@ -41,6 +41,7 @@ function toogle_minipanel() { } var left_width = 292; // (relative) hide_bar position +var left_widht_mini = 20; // (relative) hide_bar position $(document).ready(function() { @@ -54,12 +55,12 @@ $(document).ready(function() { $('#hide_bar table').hover(function () { if ($('#hide_bar').position().left >= left_width) $(this).css('backgroundImage','url(../img/hide1.png)').css('backgroundColor','#888888'); - else if($('#hide_bar').position().left == 0) + else if($('#hide_bar').position().left <= left_width_mini) $(this).css('backgroundImage','url(../img/hide3.png)').css('backgroundColor','#888888'); },function (){ if($('#hide_bar').position().left >= left_width) $(this).css('backgroundImage','url(../img/hide0.png)').css('backgroundColor','#EEEEEE'); - else if($('#hide_bar').position().left == 0) + else if($('#hide_bar').position().left <= 20) $(this).css('backgroundImage','url(../img/hide2.png)').css('backgroundColor','#EEEEEE'); } );