mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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:
parent
05510ca65f
commit
e13bb588d3
@ -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;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user