usar tabs acá
This commit is contained in:
parent
85efaf988a
commit
3fdbd01b78
1 changed files with 11 additions and 11 deletions
|
@ -278,19 +278,19 @@ function setupEditor (editorEl: HTMLElement): void {
|
|||
}
|
||||
|
||||
document.addEventListener("turbolinks:load", () => {
|
||||
const flash = document.querySelector<HTMLElement>('.js-flash')
|
||||
const flash = document.querySelector<HTMLElement>('.js-flash')
|
||||
|
||||
if (flash) {
|
||||
const keys = JSON.parse(flash.dataset.keys || '[]')
|
||||
if (flash) {
|
||||
const keys = JSON.parse(flash.dataset.keys || '[]')
|
||||
|
||||
switch (flash.dataset.target) {
|
||||
case 'editor':
|
||||
switch (flash.dataset.action) {
|
||||
case 'forget-content':
|
||||
keys.forEach(forgetContent)
|
||||
}
|
||||
}
|
||||
}
|
||||
switch (flash.dataset.target) {
|
||||
case 'editor':
|
||||
switch (flash.dataset.action) {
|
||||
case 'forget-content':
|
||||
keys.forEach(forgetContent)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (const editorEl of document.querySelectorAll<HTMLElement>('.editor[data-editor]')) {
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue