Make "alert" nodes more consistent.

This commit is contained in:
Dave C-J 2013-10-02 21:16:26 +01:00
parent 148f6f418e
commit e316c4734f
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@
<script type="text/x-red" data-template-name="notify">
<div class="form-row">
<label for="node-input-title"><i class="icon-tag"></i> Title</label>
<label for="node-input-title"><i class="icon-flag"></i> Title</label>
<input type="text" id="node-input-title" placeholder="Node-RED">
</div>
<div class="form-row">

View File

@ -37,7 +37,7 @@ if (pushkey) {
function ProwlNode(n) {
RED.nodes.createNode(this,n);
this.title = n.title;
this.priority = n.priority * 1;
this.priority = parseInt(n.priority);
if (this.priority > 2) this.priority = 2;
if (this.priority < -2) this.priority = -2;
var node = this;