tracks/app/views/projects/update_project_name.js.rjs

10 lines
329 B
Text
Raw Normal View History

page['default_project_name_id'].value = @project.name
page['todo_project_name'].value = @project.name
# renew project auto complete array
page << "var projectNames = #{project_names_for_autocomplete};"
page << "enable_rich_interaction();"
status_message = "Name of project was changed"
page.notify :notice, status_message, 5.0