var formSubmit = elBySel('.formSubmit', editor);
var buttonSave = elBySel('button[data-type="save"]', formSubmit);
- buttonSave.addEventListener('click', this._save.bind(this));
+ buttonSave.addEventListener(WCF_CLICK_EVENT, this._save.bind(this));
- if (this._options.extendedForm) {
- var buttonExtended = elBySel('button[data-type="extended"]', formSubmit);
- buttonExtended.addEventListener(WCF_CLICK_EVENT, this._prepareExtended.bind(this));
- }
-
var buttonCancel = elBySel('button[data-type="cancel"]', formSubmit);
- buttonCancel.addEventListener('click', this._restoreMessage.bind(this));
+ buttonCancel.addEventListener(WCF_CLICK_EVENT, this._restoreMessage.bind(this));
EventHandler.add('com.woltlab.wcf.redactor', 'submitEditor_' + id, (function(data) {
data.cancel = true;