mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-21 06:34:07 +01:00
fix regression and refactor todos/update.js a bit
This commit is contained in:
parent
4cdbd9a451
commit
8a3cb66e49
8 changed files with 332 additions and 334 deletions
6
app/views/todos/_update_has_errors.js.erb
Normal file
6
app/views/todos/_update_has_errors.js.erb
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
animate: function() {
|
||||
TracksPages.show_edit_errors(<%=object_name%>.html_for_error_messages());
|
||||
},
|
||||
html_for_error_messages: function() {
|
||||
return "<%= escape_javascript(get_list_of_error_messages_for(@todo)) %>";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue