]> _ Git - fluidbook-toolbox.git/commitdiff
wait #6331 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 5 Oct 2023 17:02:26 +0000 (19:02 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 5 Oct 2023 17:02:26 +0000 (19:02 +0200)
resources/views/fields/elearning_translation_overwrite.blade.php

index e3935a3cc44ce0e0afd901cce2e8459e1e81d12f..d9d0b81a2d01847a4c6a0ef4685c23a05f173517 100644 (file)
                             if (k === 'nsis') {
                                 return;
                             }
-                            var d = t.translation;
-                            if (t.translation !== str) {
-                                d += '<i style="font-size: 75%;display: block;margin-top: -5px;">' + str + '</i>';
+                            if (t.translation === null) {
+                                t.translation = str;
                             }
+                            var d = t.translation;
+                            d += '<i style="font-size: 75%;display: block;margin-top: -5px;">' + str + '</i>';
                             $(s).find('option[value="' + escapeStr(str) + '"]').text(d);
                         });
                         $(s).removeClass('select2-hidden-accessible');