refactor: reorder variables

This commit is contained in:
David Culley 2024-07-10 19:44:28 +02:00
parent 1dcb58bdab
commit 3c4c05a4d6
No known key found for this signature in database
GPG key ID: E6D8947E83ACCD4F

View file

@ -313,13 +313,10 @@ require("anki/ui").loaded.then(() => require("anki/NoteEditor").instances[0].too
else:
label_element = ""
id_attribute_assignment = f"id={id}" if id else ""
cmd_to_toggle_button = "toggleEditorButton(this);" if toggleable else ""
title_attribute = shortcut(title_attribute)
cmd_to_toggle_button = "toggleEditorButton(this);" if toggleable else ""
id_attribute_assignment = f"id={id}" if id else ""
class_attribute = "linkb" if rightside else "rounded"
if not disables:
class_attribute = f"{class_attribute} perm"