Skip to content

Commit

Permalink
run standard
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueGreenMagick committed Aug 28, 2024
1 parent 954894e commit 35ecacb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/addon/web/global_card.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@
}
}

const qEl = document.getElementById('qa');
qEl?.setAttribute('data-efdrc-editing', 'true');
const qEl = document.getElementById('qa')
qEl?.setAttribute('data-efdrc-editing', 'true')

const fld = target.getAttribute('data-EFDRCfield')
window.pycmd('EFDRC!focuson#' + fld)
}
Expand All @@ -124,8 +124,8 @@
delete window.invokeTooltipAtSelectedElm2
}

const qEl = document.getElementById('qa');
qEl?.removeAttribute('data-efdrc-editing');
const qEl = document.getElementById('qa')
qEl?.removeAttribute('data-efdrc-editing')

const el = target
if (EFDRC.CONF.remove_span) {
Expand Down Expand Up @@ -283,7 +283,7 @@
// Set 'data-EFDRC-ctrl' attribute on '#q' element
// which is reset when card or side changes.
// It can be used for styling in note type templates
const qEl = document.getElementById('qa');
const qEl = document.getElementById('qa')
qEl?.setAttribute('data-efdrc-ctrl', 'true')

const els = document.querySelectorAll('[data-EFDRCfield]')
Expand All @@ -297,7 +297,7 @@

EFDRC.ctrlup = function () {
if (EFDRC.CONF.ctrl_click) {
const qEl = document.getElementById('qa');
const qEl = document.getElementById('qa')
qEl?.removeAttribute('data-efdrc-ctrl')

const els = document.querySelectorAll('[data-EFDRCfield]')
Expand Down

0 comments on commit 35ecacb

Please sign in to comment.