diff --git a/javascript/LeftAndMain_right.js b/javascript/LeftAndMain_right.js index 9ab5a532..fe2954a9 100755 --- a/javascript/LeftAndMain_right.js +++ b/javascript/LeftAndMain_right.js @@ -7,6 +7,17 @@ CMSForm.prototype = { this.prepareForm(); }, + /** + * Trigger normal save event, helpful e.g. when enter key is pressed in + * single line input fields. + */ + onsubmit: function(e) { + this.save(); + + Event.stop(e); + return false; + }, + /** * Processing called whenever a page is loaded in the right - including the initial one */