tracks/app/views/contexts/update_context_name.js.rjs
Reinier Balt b2e82ea6b6 fix for #749
This one needs a nice test
2008-08-18 16:02:13 +02:00

10 lines
411 B
Text

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