mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-10 22:52:37 +01:00
parent
2a6b8f1cd9
commit
b2e82ea6b6
9 changed files with 38 additions and 3 deletions
10
app/views/contexts/update_context_name.js.rjs
Normal file
10
app/views/contexts/update_context_name.js.rjs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
page['context_name_in_place_editor'].replace_html @context.name
|
||||
|
||||
page['default_context_name_id'].value = @context.name
|
||||
page['todo_context_name'].value = @context.name
|
||||
|
||||
# renew context auto complete array
|
||||
page << "contextAutoCompleter.options.array = #{context_names_for_autocomplete}; contextAutoCompleter.changed = true"
|
||||
|
||||
status_message = "Name of context was changed"
|
||||
page.notify :notice, status_message, 5.0
|
||||
Loading…
Add table
Add a link
Reference in a new issue