silverstripe-cms/javascript/MemberTableField_popup.js
Hayden Smith 8bf45c52e2 Merged [47102]: Optimization for Behaviour sheets that allows you to provide a unique identifier so that duplicate sheets aren't applied twice.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@60556 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-08-12 23:53:08 +00:00

14 lines
427 B
JavaScript
Executable File

MemberTableFieldPopupForm = Class.extend("ComplexTableFieldPopupForm");
MemberTableFieldPopupForm.prototype = {
initialize: function() {
this.ComplexTableFieldPopupForm.initialize();
Behaviour.register('MemberTableFieldPopupForm',{
"div.MemberTableField_Popup .Actions input.action": {
onclick: this.submitForm.bind(this)
}
});
}
}
MemberTableFieldPopupForm.applyTo('div.MemberTableField_Popup .Actions');