diff --git a/editor/js/ui/projects.js b/editor/js/ui/projects.js index 0b819877a..04571fa55 100644 --- a/editor/js/ui/projects.js +++ b/editor/js/ui/projects.js @@ -910,7 +910,9 @@ RED.projects = (function() { } } } - },projectData).always(function() { + },projectData).then(function() { + RED.events.emit("project:change", {name:name}); + }).always(function() { RED.deploy.setDeployInflight(false); }) @@ -1075,7 +1077,9 @@ RED.projects = (function() { } }, } - },{active:true}).always(function() { + },{active:true}).then(function() { + RED.events.emit("project:change", {name:name}); + }).always(function() { RED.deploy.setDeployInflight(false); }) } diff --git a/nodes/core/core/58-debug.html b/nodes/core/core/58-debug.html index ba987dcb1..051602ace 100644 --- a/nodes/core/core/58-debug.html +++ b/nodes/core/core/58-debug.html @@ -183,6 +183,18 @@ }; RED.comms.subscribe("debug",this.handleDebugMessage); + this.clearMessageList = function() { + RED.debug.clearMessageList(true); + if (subWindow) { + try { + subWindow.postMessage({event:"projectChange"},"*"); + } catch(err) { + console.log(err); + } + } + }; + RED.events.on("project:change", this.clearMessageList); + $("#debug-tab-open").click(function(e) { e.preventDefault(); subWindow = window.open(document.location.toString().replace(/[?#].*$/,"")+"debug/view/view.html"+document.location.search,"nodeREDDebugView","menubar=no,location=no,toolbar=no,chrome,height=500,width=600"); diff --git a/nodes/core/core/lib/debug/debug-utils.js b/nodes/core/core/lib/debug/debug-utils.js index 6512f6b44..cbb623ef9 100644 --- a/nodes/core/core/lib/debug/debug-utils.js +++ b/nodes/core/core/lib/debug/debug-utils.js @@ -68,7 +68,7 @@ RED.debug = (function() { // var filterTypeRow = $('
').appendTo(filterDialog); // $('').appendTo(filterTypeRow); - var debugNodeListRow = $('').appendTo(filterDialog); + var debugNodeListRow = $('').appendTo(filterDialog); var flowCheckboxes = {}; var debugNodeListHeader = $('