Advertisement
Guest User

Untitled

a guest
Sep 4th, 2024
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. _initAjaxPosting() {
  2. let el;
  3. if(aib.qFormRedir && (el = $q(aib.qFormRedir, this.form))) {
  4. $hide(el.closest(aib.qFormTr));
  5. el.checked = true;
  6. }
  7. this.form.onsubmit = async e => {
  8. e.preventDefault();
  9. $popup('upload', Lng.sending[lang], true);
  10. try {
  11. const data = await html5Submit(this.form, this.subm, true);
  12. await checkSubmit(data);
  13. if (aib.makaba && !aib.isArchived) {
  14. const resetButton = this.form.querySelector('button[js-target-captcha-reset]');
  15. if (resetButton) {
  16. resetButton.click();
  17. }
  18. }
  19. } catch(err) {
  20. showSubmitError(err);
  21. }
  22. };
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement