Skip to content

Commit

Permalink
Refactored all AJAX based calls so that all responses still have the …
Browse files Browse the repository at this point in the history
…icon animation and hover functionality
  • Loading branch information
baphled committed Jun 15, 2010
1 parent 7971255 commit ce92dc3
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 5 deletions.
5 changes: 4 additions & 1 deletion app/views/features/index.rjs.erb
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
$('div.list').replaceWith("<%= escape_javascript(render :partial => '/common/sortable_list',:locals => {:models => @features, :item_name => 'feature', :assoc => 'story', :order =>false})%>");
$('div#sidebar').html("<%= escape_javascript(render :partial => '/common/sidebar_list_content', :locals => {:models => @features, :assoc => 'stories'})%>");
$('div#sidebar').html("<%= escape_javascript(render :partial => '/common/sidebar_list_content', :locals => {:models => @features, :assoc => 'stories'})%>");

$('ul.items-list li > span').animateIconPanel();
$('a[title]').tooltip();
2 changes: 2 additions & 0 deletions app/views/features/show.rjs.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
$('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();
$('ul.items-list li > span').animateIconPanel();
$('a[title]').tooltip();
$('div#sidebar').html("<%= escape_javascript(render :partial => '/common/sidebar_list_content', :locals => {:models => @feature_stories, :assoc => 'steps'})%>");
4 changes: 3 additions & 1 deletion app/views/projects/index.rjs.erb
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
$('#list').html("<%= escape_javascript(render :partial => '/common/sortable_list', :locals => {:models => @projects, :item_name => 'project', :assoc => 'feature', :order =>false})%>");
$('#list').html("<%= escape_javascript(render :partial => '/common/sortable_list', :locals => {:models => @projects, :item_name => 'project', :assoc => 'feature', :order =>false})%>");
$('ul.items-list li > span').animateIconPanel();
$('a[title]').tooltip();
4 changes: 3 additions & 1 deletion app/views/projects/show.rjs.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
$('div.list').replaceWith("<%= escape_javascript(render :partial => '/common/sortable_list',:locals => {:models => @project_features, :item_name => 'feature', :assoc => 'step', :order =>true})%>");
$('div.list').replaceWith("<%= escape_javascript(render :partial => '/common/sortable_list',:locals => {:models => @project_features, :item_name => 'feature', :assoc => 'stories', :order =>true})%>");
$('div#lists ul').customSortable();
$('ul.items-list li > span').animateIconPanel();
$('a[title]').tooltip();
$('div#sidebar').html("<%= escape_javascript(render :partial => 'common/sidebar_list_content', :locals => {:models => @project_features, :assoc => 'stories'})%>");
4 changes: 3 additions & 1 deletion app/views/steps/index.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ $('.list_content').html("<%= escape_javascript(render :partial => '/common/sorta
:method => :formatted,
:method_arg => @steps,
:assoc => nil,
:order => false})%>");
:order => false})%>");
$('ul.items-list li > span').animateIconPanel();
$('a[title]').tooltip();
2 changes: 2 additions & 0 deletions app/views/stories/index.rjs.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ $('div.list')
:assoc => 'step',
:order =>false})%>");
$('div#sidebar').html("<%= escape_javascript(render :partial => 'common/sidebar_list_content', :locals => {:models => @stories, :assoc => 'steps'})%>");
$('ul.items-list li > span').animateIconPanel();
$('a[title]').tooltip();
4 changes: 3 additions & 1 deletion app/views/stories/show.rjs.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@
:method_arg => @story_steps,
:assoc => nil,
:order =>true})%>");
$('div#lists ul').customSortable();
$('div#lists ul').customSortable();
$('ul.items-list li > span').animateIconPanel();
$('a[title]').tooltip();

0 comments on commit ce92dc3

Please sign in to comment.