mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-31 09:59:07 +01:00
Remove jQuery call to close question modal
This commit is contained in:
parent
2efaae6987
commit
49a972bfd3
1 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
import { post } from '@rails/request.js';
|
import { post } from '@rails/request.js';
|
||||||
|
import { Modal } from 'bootstrap';
|
||||||
import { showErrorNotification, showNotification } from 'utilities/notifications';
|
import { showErrorNotification, showNotification } from 'utilities/notifications';
|
||||||
import I18n from 'retrospring/i18n';
|
import I18n from 'retrospring/i18n';
|
||||||
|
|
||||||
|
@ -21,7 +22,8 @@ export function questionboxAllHandler(event: Event): void {
|
||||||
|
|
||||||
if (data.success) {
|
if (data.success) {
|
||||||
document.querySelector<HTMLInputElement>('textarea[name=qb-all-question]').value = '';
|
document.querySelector<HTMLInputElement>('textarea[name=qb-all-question]').value = '';
|
||||||
window['$']('#modal-ask-followers').modal('hide');
|
const modal = Modal.getInstance(document.querySelector('#modal-ask-followers'));
|
||||||
|
modal.hide();
|
||||||
|
|
||||||
// FIXME: also solve this using a Stimulus controller
|
// FIXME: also solve this using a Stimulus controller
|
||||||
const characterCount = document.querySelector<HTMLElement>('#modal-ask-followers [data-character-count-max-value]').dataset.characterCountMaxValue;
|
const characterCount = document.querySelector<HTMLElement>('#modal-ask-followers [data-character-count-max-value]').dataset.characterCountMaxValue;
|
||||||
|
|
Loading…
Reference in a new issue