Permalink
Browse files

Add a "弾いたよ!" button. (in process)

  • Loading branch information...
1 parent 295d70d commit 2e5fb3669926e35b4ad3b9982612140e82d25719 @volpe28v committed Apr 15, 2012
@@ -56,8 +56,8 @@ def get_tunes_list
def update_progress
@user = User.find(params[:user_id])
- tune = Tune.find(params[:tune_id])
- tune.update_progress(@user,params[:progress_val])
+ @tune = Tune.find(params[:tune_id])
+ @tune.update_progress(@user,params[:progress_val])
set_tune_counts(@user)
end
@@ -11,7 +11,7 @@
<button class="btn btn-mini" onclick="progress_controller.up('<%= @user.id %>','<%= t.id %>')"><%= ">" %></button>
</td>
<% end %>
- <td><%= last_played_at(t.progress_updated_at(@user)) %></td>
+ <td id="progress_updated_at_<%= t.id %>"><%= last_played_at(t.progress_updated_at(@user)) %></td>
</tr>
<% end %>
</table>
@@ -1,5 +1,6 @@
updateElem('#touched_num',<%= @touched_count %>)
updateElem('#doing_num',<%= @doing_count %>)
updateElem('#done_num',<%= @done_count %>)
+updateElem('#progress_updated_at_<%= @tune.id %>','<%= last_played_at(@tune.progress_updated_at(@user)) %>')

0 comments on commit 2e5fb36

Please sign in to comment.