tracks/app/views/todos/toggle_star.js.erb
Reinier Balt 4cdbd9a451 move js genreated for ajax calls into their own object to prevent name clashes
I only modified the js that is most likely to be used in cocurrent calls. This because we
start the development of Tracks 3 that will change all js.
2014-08-13 15:33:32 +02:00

5 lines
No EOL
229 B
Text

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