Skip to content

Commit

Permalink
Merge branch 'hover_item_bug_fix' of git@github.com:baphled/salad int…
Browse files Browse the repository at this point in the history
…o lighthouse_integration
  • Loading branch information
baphled committed May 30, 2010
2 parents 13ebdce + 65f3a2a commit dc29db0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
3 changes: 1 addition & 2 deletions app/views/features/show.rjs.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
$('div.list').replaceWith("<%= escape_javascript(render :partial => '/common/sortable_list',:locals => {:models => @feature_stories, :item_name => 'story', :assoc => 'step', :order =>true})%>");
$('div#lists ul').customSortable();
$('div#sidebar').html("<%= escape_javascript(render :partial => '/common/sidebar_list_content', :locals => {:models => @feature_stories, :assoc => 'steps'})%>");
$.include('/javascripts/item_hover.js');
$('div#sidebar').html("<%= escape_javascript(render :partial => '/common/sidebar_list_content', :locals => {:models => @feature_stories, :assoc => 'steps'})%>");
3 changes: 1 addition & 2 deletions app/views/projects/show.rjs.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
$('div.list').replaceWith("<%= escape_javascript(render :partial => '/common/sortable_list',:locals => {:models => @project_features, :item_name => 'feature', :assoc => 'step', :order =>true})%>");
$('div#lists ul').customSortable();
$('div#sidebar').html("<%= escape_javascript(render :partial => 'common/sidebar_list_content', :locals => {:models => @project_features, :assoc => 'stories'})%>");
$.include('/javascripts/item_hover.js');
$('div#sidebar').html("<%= escape_javascript(render :partial => 'common/sidebar_list_content', :locals => {:models => @project_features, :assoc => 'stories'})%>");
8 changes: 7 additions & 1 deletion app/views/stories/index.rjs.erb
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
$('#list').html("<%= escape_javascript(render :partial => '/common/sortable_list',:locals => {:models => @stories, :item_name => 'story', :assoc => 'step', :order =>false})%>");
$('div.list')
.html("<%= escape_javascript(render :partial => '/common/sortable_list',
:locals => {
:models => @stories,
:item_name => 'story',
:assoc => 'step',
:order =>false})%>");
5 changes: 1 addition & 4 deletions public/javascripts/item_hover.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,5 @@ $(document).ready(function() {
$($hover_class).toggle();
};

$("div.list_item").each(function(event) {
$(this).mouseover(hoverItem);
$(this).mouseout(hoverItem);
});
$("div.list_item").live('mouseover mouseout', hoverItem);
});

0 comments on commit dc29db0

Please sign in to comment.