MINOR Fixed LeftAndMain.EditForm.js button onclick, concrete is buggy

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92777 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-11-21 03:17:57 +00:00
parent 5ab645e35c
commit 17392ff42b

View File

@ -305,8 +305,13 @@
*/
$('#Form_EditForm .Actions :submit').concrete('ss', function($){
return/** @lends ss.Form_EditForm.Actions.submit */{
onclick: function() {
jQuery('#Form_EditForm').concrete('ss').ajaxSubmit(this);
onmatch: function() {
this.bind('click', this._onclick);
this._super();
},
_onclick: function() {
jQuery('#Form_EditForm').concrete('ss').ajaxSubmit(this);
return false;
}
};