note: fix submit button

This commit is contained in:
lutranf
2014-10-28 15:09:50 +01:00
parent 2ca7339f28
commit 6b149c445d

View File

@@ -14,7 +14,7 @@ databap.pageInit = function()
//Add note selection form
$('#note_id').addDefaultValue('N° note');
$('#note_form')
.addButton('ok', 'Ok', $('#note_form').submit, 'submit', 'heavy')
.addButton('ok', 'Ok', function($This){$This.submit();}, 'submit', 'heavy')
.submit(function(){databap.goToInternalLink('note', $('#note_id').val())});
$Frame.css('height', 'calc(100% - '+($('#note_form').outerHeight()+14)+'px)');