mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merged revisions 57390 via svnmerge from
svn://svn.silverstripe.com/silverstripe/modules/cms/branches/2.2.2-caron ........ r57390 | ischommer | 2008-07-04 11:06:25 +1200 (Fri, 04 Jul 2008) | 1 line BUGFIX Preventing non-ajax form submit in CMSMain when pressing enter-key inside certain form fields in Firefox - overloaded onsubmit to use CMSForm->save() now ........ git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@57388 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
388e73fef3
commit
2c2412267b
@ -7,6 +7,17 @@ CMSForm.prototype = {
|
|||||||
this.prepareForm();
|
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
|
* Processing called whenever a page is loaded in the right - including the initial one
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user