mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Remove duplicate editor toggle handling
Flipping the plugin card is now handled within the plugin card itself.
This commit is contained in:
@@ -413,9 +413,6 @@ function onShowSettingsDialog() {
|
||||
}
|
||||
|
||||
function onEditorOpen(evt) {
|
||||
/* Now show editor. */
|
||||
evt.target.classList.toggle('flip');
|
||||
|
||||
/* Enable priority hover in plugins list and enable header
|
||||
buttons if this is the only editor instance. */
|
||||
let numEditors = 0;
|
||||
@@ -479,10 +476,6 @@ function onEditorClose(evt) {
|
||||
promise.then(() => {
|
||||
delete evt.target.data.editor;
|
||||
|
||||
/* Now hide editor. */
|
||||
evt.target.classList.toggle('flip');
|
||||
evt.target.data.isEditorOpen = false;
|
||||
|
||||
/* Disable priority hover in plugins list and enable header
|
||||
buttons if this is the only editor instance. */
|
||||
let numEditors = parseInt(document.body.getAttribute('data-editors'), 10);
|
||||
|
||||
Reference in New Issue
Block a user