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