Permalink
Browse files

MINOR Temporary workaround for event handling in namespaces for concr…

…ete library

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92657 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 4809523 commit 48bbfeffa4b19a93c4077da154b204733b123f8a @chillu chillu committed Nov 21, 2009
Showing with 11 additions and 5 deletions.
  1. +11 −5 javascript/LeftAndMain.EditForm.js
@@ -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.