From 6b6c883a38183b7715934f17634b0e3a44495166 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 20 May 2013 11:13:33 -0400 Subject: [PATCH] follow suggestions in 5563 --- main/inc/lib/javascript/jquery.lp_minipanel.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main/inc/lib/javascript/jquery.lp_minipanel.js b/main/inc/lib/javascript/jquery.lp_minipanel.js index c3ba68bbe5..7d0647e6d3 100644 --- a/main/inc/lib/javascript/jquery.lp_minipanel.js +++ b/main/inc/lib/javascript/jquery.lp_minipanel.js @@ -52,14 +52,14 @@ $(document).ready(function() { //Adding effects to hide bar $('#hide_bar table').hover(function () { - if ($('#hide_bar').position().left == 292) + if ($('#hide_bar').position().left >= 292) $(this).css('backgroundImage','url(../img/hide1.png)').css('backgroundColor','#888888'); - else if($('#hide_bar').position().left == 0) + else if($('#hide_bar').position().left <= 20) $(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'); } ); @@ -69,7 +69,7 @@ $(document).ready(function() { // Adding funcionality $( "#hide_bar" ).click(function() { $('#hide_bar table').toggle(function() { - if ($('#hide_bar').position().left == left_width) { + if ($('#hide_bar').position().left >= left_width) { toogle_minipanel(); } },