Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seperate Phonebook into a standalone node #96

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 0 additions & 57 deletions calllist.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,60 +64,3 @@
</div>
</script>

<script type="text/javascript">
RED.nodes.registerType("fritzbox-phonebook", {
category: "fritzbox",
paletteLabel: "FRITZ!Box Phonebook",
color: "#2E90DD",
defaults: {
device: {
type: "fritzbox-config",
required: true
},
name: {
value: "",
required: false
},
id: {
value: "0",
required: false,
validate: function (v) {
return (RED.validators.number()(v) || v === "");
}
},
action: {
value: "GetPhonebook"
},
listurl: {
value: "NewPhonebookURL"
}
},
inputs: 1,
outputs: 1,
icon: "fritz.png",
label: function () {
return this.name ? this.name : "FRITZ!Box Phonebook";
}
});
</script>

<script type="text/x-red" data-template-name="fritzbox-phonebook">
<div class="form-row">
<label for="node-input-device"><i class="fa fa-server"></i>Device</label>
<input type="text" id="node-input-device">
</div>
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i>Name</label>
<input type="text" id="node-input-name" />
</div>
<div class="form-row">
<label for="node-input-id"><i class="fa fa-tag"></i>Phonebook Id</label>
<input type="text" id="node-input-id" />
</div>
<div class="form-row">
<input type="hidden" id="node-input-action" />
</div>
<div class="form-tips">
Use the msg.payload to pass the arguments in the form of. Required arguments are: &#123;&quot;NewPhonebookID&quot;:&quot;0&quot;&#125; with an ID number, in most cases 0.
</div>
</script>
3 changes: 1 addition & 2 deletions calllist.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ module.exports = function(RED) {
node.config.removeListener('statusUpdate', node.status);
});
}
RED.nodes.registerType("fritzbox-calllist", FritzboxList);
RED.nodes.registerType("fritzbox-phonebook", FritzboxList);
RED.nodes.registerType("fritzbox-calllist", FritzboxList)
}

Loading