fix #1155 where editing a note on the notes page submits the wrong form

This commit is contained in:
Reinier Balt 2011-04-29 18:26:27 +02:00
parent 3d3747cb45
commit 106f966965
2 changed files with 6 additions and 5 deletions

View file

@ -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;
});
}