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

fixed bug with outputs not being set correctly after initial load

This commit is contained in:
Kris Daniels 2013-12-21 16:55:44 +01:00
parent 497f08bba9
commit e72ced85e6

View File

@ -116,10 +116,11 @@
defaults: { defaults: {
postgresdb: { type:"postgresdb",required:true}, postgresdb: { type:"postgresdb",required:true},
name: {value:""}, name: {value:""},
output: {value:false} output: {value:false},
outputs: {value:0}
}, },
inputs:1, inputs: 1,
outputs:0, outputs: 0,
icon: "postgres.png", icon: "postgres.png",
align: "right", align: "right",
label: function() { label: function() {
@ -137,8 +138,9 @@
oneditsave: function() { oneditsave: function() {
var hasOutput = $( "#node-input-output" ).prop( "checked" ); var hasOutput = $( "#node-input-output" ).prop( "checked" );
this.outputs = hasOutput ? 1: 0; this.outputs = hasOutput ? 1:0;
} }
}); });
</script> </script>