mirror of https://github.com/go-gitea/gitea.git
Update web_src/js/modules/fomantic/dimmer.js
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
parent
012f9dc9ed
commit
ede1781629
|
@ -8,7 +8,7 @@ export function initFomanticDimmer() {
|
|||
const $el = arg1;
|
||||
const existingDimmer = document.querySelector('body > .ui.dimmer');
|
||||
if (existingDimmer) {
|
||||
queryElemChildren(existingDimmer, '*', (el) => el.remove());
|
||||
queryElemChildren(existingDimmer, '*', (el) => el.classList.add('hidden'));
|
||||
this._dimmer = existingDimmer;
|
||||
} else {
|
||||
this._dimmer = document.createElement('div');
|
||||
|
|
Loading…
Reference in New Issue