dialog.appendChild(formSubmit);
_confirmButton = elCreate('button');
+ _confirmButton.dataset.type = "submit";
_confirmButton.classList.add('buttonPrimary');
_confirmButton.textContent = Language.get('wcf.global.confirmation.confirm');
- _confirmButton.addEventListener(WCF_CLICK_EVENT, this._confirm.bind(this));
formSubmit.appendChild(_confirmButton);
var cancelButton = elCreate('button');
_onShow: function() {
_confirmButton.blur();
_confirmButton.focus();
+ },
+
+ _dialogSubmit: function() {
+ this._confirm();
}
};
});