Merge pull request #1800 from C-Otto/typos

Typos
This commit is contained in:
Reinier Balt 2015-04-12 17:39:30 +02:00
commit 5e8ce9f460
6 changed files with 8 additions and 8 deletions

View file

@ -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

View file

@ -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();