Skip to content

Commit

Permalink
Added functionality to allow the hover functionality to still work wh…
Browse files Browse the repository at this point in the history
…en the user changes pages via XHR
  • Loading branch information
baphled committed May 12, 2010
1 parent a2c5711 commit 116303e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/views/projects/show.html.erb
@@ -1,6 +1,7 @@
<% content_for :js_head do %>
<%= javascript_include_tag "http://cdn.jquerytools.org/1.2.0/all/jquery.tools.min.js" %>
<%= javascript_include_tag "tooltips.js" %>
<%= javascript_include_tag "jquery-include.js" %>
<%end %>
<%= render :partial => '/common/model_info_and_summary', :locals => {:model => @project, :assoc => :features } %>
Expand Down
6 changes: 4 additions & 2 deletions app/views/projects/show.rjs.erb
@@ -1,2 +1,4 @@
$('div.list').html("<%= escape_javascript(render :partial => '/common/sortable_list',:locals => {:models => @project_features, :item_name => 'feature', :assoc => 'step', :order =>true})%>");
$('div#lists ul').customSortable();
$('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');

0 comments on commit 116303e

Please sign in to comment.