MINOR concrete specs in LeftAndMain.EditForm.js

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92763 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-11-21 03:17:25 +00:00
parent 05510ca65f
commit e13bb588d3

View File

@ -173,6 +173,8 @@
this.addClass('loading');
this.trigger('load');
this.cleanup();
return jQuery.ajax(jQuery.extend({
url: url,
@ -303,16 +305,8 @@
*/
$('#Form_EditForm .Actions :submit').concrete('ss', function($){
return/** @lends ss.Form_EditForm.Actions.submit */{
onmatch: function() {
var self = this;
// TODO Fix once concrete library is updated
this.bind('click', function(e) {return self.clickFake(e);});
this._super();
},
clickFake: function(e) {
$(this[0].form).concrete('ss').ajaxSubmit(this);
onclick: function() {
jQuery('#Form_EditForm').concrete('ss').ajaxSubmit(this);
return false;
}
};