diff -r b0dd75e285d2 -r 0954f5dd2cd0 ginebra2/chrome/js/ContextMenu.js --- a/ginebra2/chrome/js/ContextMenu.js Fri May 14 15:40:36 2010 +0300 +++ b/ginebra2/chrome/js/ContextMenu.js Tue Jun 29 00:46:29 2010 -0400 @@ -1,37 +1,37 @@ - -$(document).ready(function() { + +$(document).ready(function() { //Get all the LI from the #tabMenu UL $('#tabMenu > li').click(function(){ //perform the actions when it's not selected - if (!$(this).hasClass('selected')) { - - //remove the selected class from all LI + if (!$(this).hasClass('selected')) { + + //remove the selected class from all LI $('#tabMenu > li').removeClass('selected'); - + //Reassign the LI $(this).addClass('selected'); - + //Hide all the DIV in .boxBody $('.boxBody div').slideUp('1500'); - + //Look for the right DIV in boxBody according to the Navigation UL index, therefore, the arrangement is very important. $('.boxBody div:eq(' + $('#tabMenu > li').index(this) + ')').slideDown('1500'); } - + }).mouseover(function() { - //Add and remove class, Personally I dont think this is the right way to do it, anyone please suggest + //Add and remove class, Personally I dont think this is the right way to do it, anyone please suggest $(this).addClass('mouseover'); - $(this).removeClass('mouseout'); - + $(this).removeClass('mouseout'); + }).mouseout(function() { - + //Add and remove class $(this).addClass('mouseout'); - $(this).removeClass('mouseover'); - + $(this).removeClass('mouseover'); + }); //Mouseover effect for menu list. @@ -41,7 +41,7 @@ $(this).css('backgroundColor','#fff'); }).mouseout(function() { $(this).css('backgroundColor',''); - }); - + }); + }); - \ No newline at end of file +