mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-07 16:24:21 +01:00
commit
5e8ce9f460
6 changed files with 8 additions and 8 deletions
|
|
@ -413,7 +413,7 @@ class TodosController < ApplicationController
|
|||
@todo = current_user.todos.find(params['id'])
|
||||
@original_item = current_user.todos.build(@todo.attributes) # create a (unsaved) copy of the original todo
|
||||
|
||||
cache_attributes_from_before_update # TODO: remove in favor of @orininal_item
|
||||
cache_attributes_from_before_update # TODO: remove in favor of @original_item
|
||||
|
||||
update_tags
|
||||
update_project
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<%- object_name = unique_object_name_for("update_todo_#{@todo.id}") -%>
|
||||
var <%=object_name%> = {
|
||||
<%= render :partial => (@saved ? "update_succesfull" : "update_has_errors"), locals: {object_name: object_name} %>
|
||||
<%= render :partial => (@saved ? "update_successful" : "update_has_errors"), locals: {object_name: object_name} %>
|
||||
}
|
||||
<%=object_name%>.animate();
|
||||
Loading…
Add table
Add a link
Reference in a new issue