Add dry contact to installer
This commit is contained in:
parent
5c8c69c9fc
commit
32190f5ba8
|
@ -202,8 +202,8 @@
|
|||
|
||||
<label>
|
||||
<img src="./dry_contact.jpg" alt="Dry contact control." />
|
||||
<input type="radio" name="protocol" value="dry_contact" />
|
||||
Dry Contact control<br/> (coming soon)
|
||||
<input type="radio" name="protocol" value="drycontact" />
|
||||
Dry Contact control<br/>Requires open & close limit switches
|
||||
</label>
|
||||
</div>
|
||||
|
||||
|
@ -290,10 +290,7 @@
|
|||
var protocol = document.querySelector('input[name="protocol"]:checked').value;
|
||||
var hardware = document.querySelector('input[name="hardware"]:checked').value;
|
||||
|
||||
if(protocol === "dry_contact"){
|
||||
alert("Dry contact support is coming soon.");
|
||||
document.querySelector('input[name="protocol"][value="secplusv2"]').checked = true;
|
||||
return;
|
||||
if(protocol === "drycontact"){
|
||||
document.querySelector("#wiring_diagram").src = "wiring_diagrams/dry_contact_diagram.png";
|
||||
}else{
|
||||
document.querySelector("#wiring_diagram").src = "wiring_diagrams/secplus_diagram.png";
|
||||
|
|
Loading…
Reference in New Issue