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

more JShint cleaning and fa icons added

This commit is contained in:
Dave C-J 2014-07-18 21:49:20 +01:00
parent aaab0d0d0b
commit 252135532d
4 changed files with 5 additions and 5 deletions

View File

@ -16,7 +16,7 @@
<script type="text/x-red" data-template-name="switch">
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row" style="padding-top:10px;">
@ -27,7 +27,7 @@
<ol id="node-input-rule-container" style=" list-style-type:none; margin: 0;">
</ol>
</div>
<a href="#" class="btn btn-mini" id="node-input-add-rule" style="margin-top: 4px;"><i class="icon-plus"></i> Add</a>
<a href="#" class="btn btn-mini" id="node-input-add-rule" style="margin-top: 4px;"><i class="fa fa-plus"></i> Add</a>
</div>
<div>
<select id="node-input-checkall" style="width:100%; margin-right:5px;">

View File

@ -41,7 +41,7 @@
<div class="form-tips" id="node-tip"></div>
<br/>
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
</script>

View File

@ -56,7 +56,7 @@ module.exports = function(RED) {
//}
//}
else if (node.action == "replace") {
if (node.to.indexOf("msg.") == 0) {
if (node.to.indexOf("msg.") === 0) {
makeNew( msg, node.property.split("."), eval(node.to) );
}
else {

View File

@ -43,7 +43,7 @@
</div>
<br/>
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-tips" id="node-tip">Tip: This node ONLY works with numbers.</div>