From 90a16f3f6d731d1a8c260fb2f1984a55988be0c6 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Fri, 15 Nov 2024 14:23:09 +0100 Subject: [PATCH] Bug 38136: Fix behavior of lang selector in translations editor --- .../intranet-tmpl/prog/en/modules/admin/localization.tt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/localization.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/localization.tt index 05da3414b2..023b9ea9cf 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/localization.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/localization.tt @@ -216,6 +216,11 @@ }); $("td.lang").on('click', function(){ var td = this; + if (td.childElementCount > 0) { + // do nothing if there is already something there (like a select for instance) + return; + } + var lang = $(td).text(); $(td).css('background-color', ''); var my_select = $(languages_select).clone(); -- 2.39.2