tracks/app/views/todos/toggle_star.js.erb
2014-08-13 15:33:32 +02:00

5 lines
No EOL
216 B
Text

<%- if @saved -%>
$('div#line_todo_<%= @todo.id %> a.star_item img').toggleClass('starred');
<%- else -%>
TracksPages.page_error('<%= t('todos.error_starring', :description => @todo.description) %>');
<%- end -%>