1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Revert "Merge pull request #2328 from kazuhitoyokoi/master-fixsubflowlang"

This reverts commit 873bdc6733, reversing
changes made to 8a40b075b5.
This commit is contained in:
Kazuhito Yokoi 2019-10-17 21:05:06 +09:00
parent 873bdc6733
commit e10dd54e2b

View File

@ -806,12 +806,12 @@ RED.subflow = (function() {
locales.val(currentLocale); locales.val(currentLocale);
locales.on("change", function() { locales.on("change", function() {
var locale = $(this).val(); currentLocale = $(this).val();
var items = $("#node-input-env-container").editableList("items"); var items = $("#node-input-env-container").editableList("items");
items.each(function (i, item) { items.each(function (i, item) {
var entry = $(this).data('data'); var entry = $(this).data('data');
var labelField = entry.ui.labelField; var labelField = entry.ui.labelField;
labelField.val(lookupLabel(entry.ui.label, "", locale)); labelField.val(lookupLabel(entry.ui.label, "", currentLocale));
if (labelField.timeout) { if (labelField.timeout) {
clearTimeout(labelField.timeout); clearTimeout(labelField.timeout);
delete labelField.timeout; delete labelField.timeout;