mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Merge pull request #4259 from kazuhitoyokoi/master-fixtooltip4textdiff
Add tooltip to text diff button
This commit is contained in:
		| @@ -989,9 +989,10 @@ RED.diff = (function() { | |||||||
|             } |             } | ||||||
|             if (localNode && remoteNode && typeof localNode[d] === "string") { |             if (localNode && remoteNode && typeof localNode[d] === "string") { | ||||||
|                 if (/\n/.test(localNode[d]) || /\n/.test(remoteNode[d])) { |                 if (/\n/.test(localNode[d]) || /\n/.test(remoteNode[d])) { | ||||||
|                     $('<button class="red-ui-button red-ui-button-small red-ui-diff-text-diff-button"><i class="fa fa-file-o"> <i class="fa fa-caret-left"></i> <i class="fa fa-caret-right"></i> <i class="fa fa-file-o"></i></button>').on("click", function() { |                     var textDiff = $('<button class="red-ui-button red-ui-button-small red-ui-diff-text-diff-button"><i class="fa fa-file-o"> <i class="fa fa-caret-left"></i> <i class="fa fa-caret-right"></i> <i class="fa fa-file-o"></i></button>').on("click", function() { | ||||||
|                         showTextDiff(localNode[d],remoteNode[d]); |                         showTextDiff(localNode[d],remoteNode[d]); | ||||||
|                     }).appendTo(propertyNameCell); |                     }).appendTo(propertyNameCell); | ||||||
|  |                     RED.popover.tooltip(textDiff, RED._("diff.compareChanges")); | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user