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:
parent
fc679adefb
commit
5bf9819bd1
@ -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;
|
||||||
@ -73,11 +73,11 @@ var RED = (function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
var nns = RED.nodes.createCompleteNodeSet();
|
var nns = RED.nodes.createCompleteNodeSet();
|
||||||
|
|
||||||
$("#btn-icn-deploy").removeClass('fa-download');
|
$("#btn-icn-deploy").removeClass('fa-download');
|
||||||
$("#btn-icn-deploy").addClass('spinner');
|
$("#btn-icn-deploy").addClass('spinner');
|
||||||
RED.view.dirty(false);
|
RED.view.dirty(false);
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url:"flows",
|
url:"flows",
|
||||||
type: "POST",
|
type: "POST",
|
||||||
@ -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);
|
||||||
@ -204,7 +205,7 @@ var RED = (function() {
|
|||||||
statusEnabled = state;
|
statusEnabled = state;
|
||||||
RED.view.status(statusEnabled);
|
RED.view.status(statusEnabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
function showHelp() {
|
function showHelp() {
|
||||||
|
|
||||||
var dialog = $('#node-help');
|
var dialog = $('#node-help');
|
||||||
@ -252,7 +253,6 @@ var RED = (function() {
|
|||||||
{id:"btn-help",icon:"fa fa-question",label:"Help...", href:"http://nodered.org/docs"}
|
{id:"btn-help",icon:"fa fa-question",label:"Help...", href:"http://nodered.org/docs"}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
RED.keyboard.add(/* ? */ 191,{shift:true},function(){showHelp();d3.event.preventDefault();});
|
RED.keyboard.add(/* ? */ 191,{shift:true},function(){showHelp();d3.event.preventDefault();});
|
||||||
loadSettings();
|
loadSettings();
|
||||||
|
Loading…
Reference in New Issue
Block a user