Skip to content

Commit

Permalink
MINOR Temporary workaround for event handling in namespaces for concr…
Browse files Browse the repository at this point in the history
…ete library

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92657 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information
chillu committed Nov 21, 2009
1 parent 4809523 commit 48bbfef
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions javascript/LeftAndMain.EditForm.js
Expand Up @@ -171,9 +171,15 @@
*/
$('#Form_EditForm .Actions :submit').concrete('ss', function($){
return/** @lends ss.Form_EditForm.Actions.submit */{
onclick: function(e) {
$(this[0].form).ajaxSubmit(this);
return false;
}
}});
onmatch: function() {
var self = this;
// TODO Fix once concrete library is updated
this.bind('click', function(e) {self.clickFake(e);});
},
clickFake: function(e) {
$(this[0].form).concrete('ss').ajaxSubmit(this);
return false;
}
};
});
}(jQuery));

0 comments on commit 48bbfef

Please sign in to comment.