Skip to content

Commit

Permalink
Committing to rebase angie's changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Connor committed Oct 29, 2011
1 parent c4dfe47 commit d8c4bfd
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 22 deletions.
2 changes: 1 addition & 1 deletion app/views/charts/_pagination.html.erb
@@ -1 +1 @@
<%= will_paginate @charts, :class => "pagination charts", :param_name => "chart_page", :previous_label => 'Previous', :next_label => 'Next' %>
<%= will_paginate @charts, :class => "pagination charts", :param_name => "chart_page", :previous_label => 'Previous', :next_label => 'Next', :method => :charts_paginate %>
2 changes: 2 additions & 0 deletions app/views/charts/charts_paginate.js.erb
@@ -0,0 +1,2 @@
$("#chart_pagination").html("<%= escape_javascript(render('charts/pagination')) %>");
alert("what");
4 changes: 1 addition & 3 deletions app/views/charts/index.js.erb
@@ -1,7 +1,5 @@
$("#content").html("<%= escape_javascript(render('charts/charts')) %>").hide().fadeIn();
$("#charts").html("<%= escape_javascript(render('charts/charts')) %>").hide().fadeIn();
$("#chart_pagination").html("<%= escape_javascript(render('charts/pagination')) %>");
$(".chart:first").toggleClass("active");
$.get($(".chart:first").attr("name"),null,null,"script");
/*var $list = $('.chart_outside');
$list.css('left', -$list.outerWidth() + 'px');
$list.animate({
Expand Down
15 changes: 5 additions & 10 deletions app/views/layouts/_flash.html.erb
@@ -1,14 +1,9 @@
<% if notice or alert %>
<div id="flash">
<div class="alert-message info">
<p><%= notice %></p>
</div>
<div class="alert-message warning">
<p><%= alert %></p>
</div>
<!-- <span class="close_flash">[x]</span> -->
</div>
<% if !!flash %>
<% flash.each do |key, value| %>
<%= content_tag(:div, value, :class => "flash #{key}") %>
<% end %>
<% end %>

<script>
$(function() {
$('#flash').delay(5000).fadeOut();
Expand Down
8 changes: 1 addition & 7 deletions app/views/layouts/application.html.erb
Expand Up @@ -28,13 +28,7 @@
<div class="top_background"></div>
<% if current_user %>
<div class="alert">
<% for name in flash_names %>
<% if flash[name] %>
<div class="alert-message <%= name %>">
<p><%= flash[name] %></p>
</div>
<% end %>
<% end %>
<%= render 'layouts/flash', :locals => {:flash => flash} %>
</div>
<div class="topbar">
<div class="topbar-inner">
Expand Down
2 changes: 1 addition & 1 deletion app/views/users/favorite.js.erb
@@ -1,2 +1,2 @@
$("#flashSpace").html("<%= escape_javascript(render('layouts/flash')) %>");
$(".alert").html("<%= escape_javascript(render('layouts/flash', :locals => {:flash => flash})) %>");
$("#chart_songs tr.<%= @song_id %> td.heart").toggleClass('active');

0 comments on commit d8c4bfd

Please sign in to comment.