mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Tidy up twitter node, add status, i18n etc
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<!--
|
||||
Copyright 2013, 2015 IBM Corp.
|
||||
Copyright 2013, 2016 IBM Corp.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
@@ -186,14 +186,13 @@
|
||||
$("#node-input-user").change();
|
||||
},
|
||||
oneditsave: function() {
|
||||
if ($('#node-input-tags').val() == '' && $("#node-input-user option:selected").val() != 'dm'
|
||||
&& $("#node-input-user option:selected").val() != 'user') {
|
||||
this.inputs=1;
|
||||
}
|
||||
if ($('#node-input-tags').val() === '' && $("#node-input-user option:selected").val() != 'dm' && $("#node-input-user option:selected").val() != 'user') {
|
||||
this.inputs=1;
|
||||
}
|
||||
else {
|
||||
//set back the default state of 0 inputs
|
||||
this.inputs=0;
|
||||
}
|
||||
//set back the default state of 0 inputs
|
||||
this.inputs=0;
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user