MINOR Temporary workaround for event handling in namespaces for concrete library

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92657 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-11-21 02:38:33 +00:00
parent 4809523bae
commit 48bbfeffa4

View File

@ -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));