mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
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:
parent
4809523bae
commit
48bbfeffa4
@ -171,9 +171,15 @@
|
|||||||
*/
|
*/
|
||||||
$('#Form_EditForm .Actions :submit').concrete('ss', function($){
|
$('#Form_EditForm .Actions :submit').concrete('ss', function($){
|
||||||
return/** @lends ss.Form_EditForm.Actions.submit */{
|
return/** @lends ss.Form_EditForm.Actions.submit */{
|
||||||
onclick: function(e) {
|
onmatch: function() {
|
||||||
$(this[0].form).ajaxSubmit(this);
|
var self = this;
|
||||||
return false;
|
// 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));
|
}(jQuery));
|
Loading…
Reference in New Issue
Block a user