mirror of https://github.com/node-red/node-red.git
Merge pull request #5567 from node-red/click-to-close
Renable click to close for edit dialogpull/5334/merge
commit
12566270a6
|
|
@ -231,6 +231,14 @@
|
|||
editorStack = $("#red-ui-editor-stack");
|
||||
$(window).on("resize", handleWindowResize);
|
||||
RED.events.on("sidebar:resize",handleWindowResize);
|
||||
$("#red-ui-editor-shade").on("click", function() {
|
||||
if (!openingTray) {
|
||||
var tray = stack[stack.length-1];
|
||||
if (tray && tray.primaryButton) {
|
||||
tray.primaryButton.click();
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
show: function show(options) {
|
||||
lowerTrayZ();
|
||||
|
|
|
|||
Loading…
Reference in New Issue