mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Merge pull request #2328 from kazuhitoyokoi/master-fixsubflowlang
Fix language handling in subflow node
This commit is contained in:
		| @@ -806,12 +806,12 @@ RED.subflow = (function() { | |||||||
|         locales.val(currentLocale); |         locales.val(currentLocale); | ||||||
|  |  | ||||||
|         locales.on("change", function() { |         locales.on("change", function() { | ||||||
|             currentLocale = $(this).val(); |             var locale = $(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, "", currentLocale)); |                 labelField.val(lookupLabel(entry.ui.label, "", locale)); | ||||||
|                 if (labelField.timeout) { |                 if (labelField.timeout) { | ||||||
|                     clearTimeout(labelField.timeout); |                     clearTimeout(labelField.timeout); | ||||||
|                     delete labelField.timeout; |                     delete labelField.timeout; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user