Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _initAjaxPosting() {
- let el;
- if(aib.qFormRedir && (el = $q(aib.qFormRedir, this.form))) {
- $hide(el.closest(aib.qFormTr));
- el.checked = true;
- }
- this.form.onsubmit = async e => {
- e.preventDefault();
- $popup('upload', Lng.sending[lang], true);
- try {
- const data = await html5Submit(this.form, this.subm, true);
- await checkSubmit(data);
- if (aib.makaba && !aib.isArchived) {
- const resetButton = this.form.querySelector('button[js-target-captcha-reset]');
- if (resetButton) {
- resetButton.click();
- }
- }
- } catch(err) {
- showSubmitError(err);
- }
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement