mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +02:00
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:
parent
b0a559d899
commit
a2df36cf71
1 changed files with 2 additions and 1 deletions
|
@ -737,7 +737,8 @@ var ProjectListPage = {
|
||||||
$('div#project_name').editable(ProjectListPage.save_project_name, {
|
$('div#project_name').editable(ProjectListPage.save_project_name, {
|
||||||
style: 'padding: 0px; width=100%;',
|
style: 'padding: 0px; width=100%;',
|
||||||
submit: i18n['common.ok'],
|
submit: i18n['common.ok'],
|
||||||
cancel: i18n['common.cancel']
|
cancel: i18n['common.cancel'],
|
||||||
|
onblur: 'cancel'
|
||||||
});
|
});
|
||||||
|
|
||||||
/* alphabetize project list */
|
/* alphabetize project list */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue