mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 07:10:12 +01:00
Wrap the project name in a div tag inside the h2 tag
When using inline editing of the project name, the extra stuff that's in the template for a collapsible project adds a bunch of spaces to the beginning of the project name due to how the editable plugin is getting the text for the selector it's being asked to edit. Using the div tag inside the header tag, and adjusting the javascript to use the div#project_name selector fixes this behavior and fixes #1204
This commit is contained in:
parent
98a69a5236
commit
cf62c91ee0
2 changed files with 5 additions and 4 deletions
|
|
@ -734,8 +734,8 @@ var ProjectListPage = {
|
|||
},
|
||||
setup_behavior: function() {
|
||||
/* in-place edit of project name */
|
||||
$('h2#project_name').editable(ProjectListPage.save_project_name, {
|
||||
style: 'padding:0px',
|
||||
$('div#project_name').editable(ProjectListPage.save_project_name, {
|
||||
style: 'padding: 0px; width=100%;',
|
||||
submit: i18n['common.ok'],
|
||||
cancel: i18n['common.cancel']
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue