mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +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($){
|
||||
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));
|
Loading…
Reference in New Issue
Block a user