and before triggering the save button, trigger change event of the element
which has current focus.
otherwise last entry will be lost
html document addLoadScript: 'jQuery(document).keypress(function(e) {
if (e.which == "13") {
jQuery("*:focus").trigger(''change'');
jQuery("#saveButton").click(); return false;
}
});'
--
View this message in context: http://forum.world.st/How-to-define-default-Button-tp4700070p4700211.html
Sent from the Seaside General mailing list archive at Nabble.com.