Skip to content

Commit

Permalink
Cleanup of layout
Browse files Browse the repository at this point in the history
  • Loading branch information
baphled committed Jun 21, 2010
1 parent 97f532d commit 11ad5ba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 2 additions & 0 deletions app/stylesheets/partials/_lists.sass
Expand Up @@ -37,3 +37,5 @@
:right 3px
li span.icons
:float right
ul.items-list li > div
:height 85px
12 changes: 5 additions & 7 deletions public/javascripts/scrollingHoverable.js
Expand Up @@ -16,11 +16,6 @@ $.fn.scrollingHoverable = function(options) {
sidebarPostfix = $('div#sidebar > ul').attr('id').split('_'),
hoverItem = 'li#' + $(this).attr('id') + '_' + sidebarPostfix[1];

$currentList = $(this).parent();

$('ul.items-list li').css({opacity: 1}).removeClass('ui-widget-content');
$currentList.animate({opacity: 0.7}, 300).addClass('ui-widget-content');

var setHoverPosition = function() {
var y = $(window).scrollTop();

Expand All @@ -31,15 +26,18 @@ $.fn.scrollingHoverable = function(options) {
$sidebarList.removeClass('fixed');
}
}

$currentList = $(this).parent();
$sidebarList.addClass('ui-widget ui-widget-content ui-corner-all');


setHoverPosition();

if (!$(hoverItem).is(':visible')) {
$('ul.items-list li').css({opacity: 1}).removeClass('ui-widget-content');
$currentList.animate({opacity: 0.7}, 300).addClass('ui-widget-content');
$('div#sidebar').find('li.side_hover').hide();
$sidebarList.find(hoverItem).toggle();
$(hoverItem).autoScroller({speed: 200, height: opts.height, stopOnHover: opts.stopOnHover});

$(window).scroll(setHoverPosition);
}
});
Expand Down

0 comments on commit 11ad5ba

Please sign in to comment.