Hide the editor when the project name field loses focus

If the project name field is being edited and it loses focus, then we
remove the edit box and the buttons. This reduces the possibility to be
able to edit the project name from more than one place as in #1205.
This commit is contained in:
Matt Rogers 2011-11-22 22:20:46 -06:00
parent b0a559d899
commit a2df36cf71

View file

@ -737,7 +737,8 @@ var ProjectListPage = {
$('div#project_name').editable(ProjectListPage.save_project_name, {
style: 'padding: 0px; width=100%;',
submit: i18n['common.ok'],
cancel: i18n['common.cancel']
cancel: i18n['common.cancel'],
onblur: 'cancel'
});
/* alphabetize project list */