mirror of
https://github.com/pretix/pretix.git
synced 2026-08-10 10:47:00 +00:00
set toolbox other/other_i18n input.value to empty string if not needed
This commit is contained in:
@@ -620,6 +620,14 @@ var editor = {
|
||||
}
|
||||
}
|
||||
|
||||
// empty text-inputs if not in use
|
||||
if ($("#toolbox-content").val() !== "other") {
|
||||
$("#toolbox-content-other").val("");
|
||||
}
|
||||
if ($("#toolbox-content").val() !== "other_i18n") {
|
||||
$("#toolbox-content-other-i18n textarea").val("");
|
||||
}
|
||||
|
||||
o.setCoords();
|
||||
editor.fabric.renderAll();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user