This commit is contained in:
Carsten Otto 2015-04-04 17:36:54 +02:00 committed by Reinier Balt
parent 12ee2ed5e3
commit eb1012f1f2
5 changed files with 7 additions and 7 deletions

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