mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-23 02:30:12 +01:00
Unused old autocompletion
This commit is contained in:
parent
9cfcd4161a
commit
af9b8824a4
1 changed files with 1 additions and 8 deletions
|
|
@ -6,13 +6,6 @@ if @saved
|
||||||
status_message = 'Added new context / ' + status_message if @new_context_created
|
status_message = 'Added new context / ' + status_message if @new_context_created
|
||||||
page.notify :notice, status_message, 5.0
|
page.notify :notice, status_message, 5.0
|
||||||
|
|
||||||
# update auto completer arrays for edit form in right column, only for pages
|
|
||||||
# with that form
|
|
||||||
unless source_view_is_one_of(:calendar)
|
|
||||||
page << "contextAutoCompleter.options.array = #{context_names_for_autocomplete}; contextAutoCompleter.changed = true" if @new_context_created
|
|
||||||
page << "projectAutoCompleter.options.array = #{project_names_for_autocomplete}; projectAutoCompleter.changed = true" if @new_project_created
|
|
||||||
end
|
|
||||||
|
|
||||||
if source_view_is_one_of(:todo, :context, :tag)
|
if source_view_is_one_of(:todo, :context, :tag)
|
||||||
if @context_changed || @todo.deferred?
|
if @context_changed || @todo.deferred?
|
||||||
page[@todo].remove
|
page[@todo].remove
|
||||||
|
|
@ -146,4 +139,4 @@ if @saved
|
||||||
else
|
else
|
||||||
page.show 'error_status'
|
page.show 'error_status'
|
||||||
page.replace_html 'error_status', "#{error_messages_for('todo')}"
|
page.replace_html 'error_status', "#{error_messages_for('todo')}"
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue