1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

add comment to main.js - how to enable auto clear of debug on deploy

This commit is contained in:
Dave C-J 2014-09-04 08:19:37 +01:00
parent fc679adefb
commit 5bf9819bd1

View File

@ -42,9 +42,9 @@ var RED = (function() {
event.preventDefault(); event.preventDefault();
}); });
function save(force) { function save(force) {
if (RED.view.dirty()) { if (RED.view.dirty()) {
//$("#debug-tab-clear").click(); // uncomment this to auto clear debug on deploy
if (!force) { if (!force) {
var invalid = false; var invalid = false;
@ -148,6 +148,7 @@ var RED = (function() {
loadNodes(); loadNodes();
}); });
} }
function loadNodes() { function loadNodes() {
$.get('nodes', function(data) { $.get('nodes', function(data) {
$("body").append(data); $("body").append(data);
@ -253,7 +254,6 @@ var RED = (function() {
] ]
}); });
RED.keyboard.add(/* ? */ 191,{shift:true},function(){showHelp();d3.event.preventDefault();}); RED.keyboard.add(/* ? */ 191,{shift:true},function(){showHelp();d3.event.preventDefault();});
loadSettings(); loadSettings();
RED.comms.connect(); RED.comms.connect();