fixed apply-runes checkbox persisting too long
This commit is contained in:
parent
c8ce1e6cd1
commit
b6c901e561
@ -318,9 +318,9 @@
|
|||||||
const $enemyInfoModal = $('#enemy-info-modal');
|
const $enemyInfoModal = $('#enemy-info-modal');
|
||||||
if ($enemyInfoModal.length) {
|
if ($enemyInfoModal.length) {
|
||||||
let rowData;
|
let rowData;
|
||||||
let shouldApplyRunes = false;
|
|
||||||
$enemyInfoModal.find('.apply-runes-form input[type="checkbox"]').on('change', (e) => {
|
$enemyInfoModal.find('.apply-runes-form input[type="checkbox"]').on('change', (e) => {
|
||||||
shouldApplyRunes = e.target.checked;
|
const shouldApplyRunes = e.target.checked;
|
||||||
|
|
||||||
if (rowData) {
|
if (rowData) {
|
||||||
if (shouldApplyRunes) {
|
if (shouldApplyRunes) {
|
||||||
@ -551,6 +551,10 @@
|
|||||||
$enemyInfoModal.find('.vacuum-rate').text(toPer(vacuumRate));
|
$enemyInfoModal.find('.vacuum-rate').text(toPer(vacuumRate));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$enemyInfoModal.on('hide.bs.modal', () => {
|
||||||
|
$enemyInfoModal.find('.apply-runes-form').hide().find('input').prop('checked', false);
|
||||||
|
});
|
||||||
|
|
||||||
$table.find('tbody.data td').on('click', (e) => {
|
$table.find('tbody.data td').on('click', (e) => {
|
||||||
rowData = rowData = { ...$(e.target).closest('tr').data() };
|
rowData = rowData = { ...$(e.target).closest('tr').data() };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user