Make unembed button also collapse spoilers.
This commit is contained in:
parent
a7c0c400cd
commit
c267b1d73b
3 changed files with 5 additions and 2 deletions
|
@ -107,7 +107,8 @@
|
|||
}
|
||||
|
||||
.sidebar__selector-mode--unembed:before {
|
||||
content: "\f127"
|
||||
font-weight: 400;
|
||||
content: "\f146"
|
||||
}
|
||||
|
||||
.sidebar__selector-mode--clear {
|
||||
|
|
|
@ -369,7 +369,7 @@ window.Umi = { UI: {} };
|
|||
for(const button of buttons)
|
||||
button.click();
|
||||
}
|
||||
}, 'Unembed any embedded media');
|
||||
}, 'Collapse any expanded elements');
|
||||
|
||||
Umi.UI.Toggles.Add('clear', {
|
||||
'click': function() {
|
||||
|
|
|
@ -321,10 +321,12 @@ Umi.Parsing = (function() {
|
|||
if(container.dataset.revealed === 'yes') {
|
||||
container.dataset.revealed = 'no';
|
||||
target.textContent = '*** HIDDEN ***';
|
||||
element.dataset.embed = '0';
|
||||
element.textContent = 'Reveal';
|
||||
} else {
|
||||
container.dataset.revealed = 'yes';
|
||||
target.textContent = container.dataset.shit;
|
||||
element.dataset.embed = '1';
|
||||
element.textContent = 'Hide';
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue