mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-16 17:26:33 +01:00
refactor application.rb further and migrate recurring todos
next: get tests for recurring todos
This commit is contained in:
parent
484356fe07
commit
cafa774b4c
33 changed files with 688 additions and 571 deletions
|
|
@ -1,6 +1,6 @@
|
|||
<% if @saved -%>
|
||||
|
||||
page_notify('notice', '<%= t('contexts.save_status_message') %>', 5);
|
||||
TracksPages.page_notify('notice', '<%= t('contexts.save_status_message') %>', 5);
|
||||
|
||||
<% if @state_changed -%>
|
||||
remove_and_re_add_context();
|
||||
|
|
@ -9,7 +9,7 @@
|
|||
<% end -%>
|
||||
|
||||
<% else -%>
|
||||
show_errors();
|
||||
TracksPages.show_edit_errors(html_for_error_messages());
|
||||
<% end -%>
|
||||
|
||||
function remove_and_re_add_context() {
|
||||
|
|
@ -33,11 +33,6 @@ function replace_context_form_with_updated_context() {
|
|||
});
|
||||
}
|
||||
|
||||
function show_errors() {
|
||||
$('div#edit_error_status').html(html_for_error_messages());
|
||||
$('div#edit_error_status').show();
|
||||
}
|
||||
|
||||
function html_for_error_messages() {
|
||||
return "<%= escape_javascript(error_messages_for('context')) %>";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue