tracks/app/views/projects/update_project_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
412 B
Text

page['project_name_in_place_editor'].replace_html @project.name
page['default_project_name_id'].value = @project.name
page['todo_project_name'].value = @project.name
# renew project auto complete array
page << "projectAutoCompleter.options.array = #{project_names_for_autocomplete}; projectAutoCompleter.changed = true"
status_message = "Name of project was changed"
page.notify :notice, status_message, 5.0