mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-19 08:40:12 +01:00
fix #1155 where editing a note on the notes page submits the wrong form
This commit is contained in:
parent
3d3747cb45
commit
106f966965
2 changed files with 6 additions and 5 deletions
|
|
@ -898,7 +898,7 @@ var NotesPage = {
|
|||
|
||||
/* update button when editing a note */
|
||||
$("form.edit-note-form button.positive").live('click', function (ev) {
|
||||
submit_with_ajax_and_block_element('form.edit-note-form', $(this));
|
||||
submit_with_ajax_and_block_element($(this).parents('form.edit-note-form'), $(this));
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue