mirror of https://github.com/node-red/node-red.git
Diff panel DOM generation : Move generation of DOM for node properties to the click on the node row (instead of the diff panel opening).
parent
8167608f04
commit
6b3b68a4e5
|
@ -687,8 +687,7 @@ RED.diff = (function() {
|
|||
diff: remoteDiff
|
||||
}
|
||||
}
|
||||
createNodePropertiesTable(def,node,localNode,remoteNode).appendTo(div);
|
||||
|
||||
|
||||
var selectState = "";
|
||||
|
||||
if (conflicted) {
|
||||
|
@ -707,6 +706,10 @@ RED.diff = (function() {
|
|||
createNodeConflictRadioBoxes(node,div,localNodeDiv,remoteNodeDiv,false,!conflicted,selectState,CurrentDiff);
|
||||
row.click(function(evt) {
|
||||
$(this).parent().toggleClass('collapsed');
|
||||
|
||||
if($(this).siblings('.node-diff-node-entry-properties').length === 0) {
|
||||
createNodePropertiesTable(def,node,localNode,remoteNode).appendTo(div);
|
||||
}
|
||||
});
|
||||
|
||||
return div;
|
||||
|
|
Loading…
Reference in New Issue