mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-22 08:46:11 +01:00
* Enable rich interaction on edit (to trigger autocompleter) * Don't try to reset autocomplete lists, since they come from the server now Fixes #1022
18 lines
732 B
Text
18 lines
732 B
Text
if @saved
|
|
# hide overlayed edit form
|
|
page << "TracksForm.toggle_overlay();"
|
|
|
|
# show update message
|
|
status_message = 'Recurring action saved'
|
|
status_message = 'Added new project / ' + status_message if @new_project_created
|
|
status_message = 'Added new context / ' + status_message if @new_context_created
|
|
page.notify :notice, status_message, 5.0
|
|
|
|
# replace old recurring todo with updated todo
|
|
page.replace dom_id(@recurring_todo), :partial => 'recurring_todos/recurring_todo', :locals => { :recurring_todo => @recurring_todo }
|
|
page.visual_effect :highlight, dom_id(@recurring_todo), :duration => 3
|
|
|
|
else
|
|
page.show 'edit_status'
|
|
page.replace_html 'edit_status', "#{error_messages_for('recurring_todo')}"
|
|
end
|