Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit e13bb588d3370281054e884ecf496bd17bb3bb27 1 parent 05510ca
@chillu chillu authored
Showing with 4 additions and 10 deletions.
  1. +4 −10 javascript/LeftAndMain.EditForm.js
View
14 javascript/LeftAndMain.EditForm.js
@@ -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;
}
};
Please sign in to comment.
Something went wrong with that request. Please try again.