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