Skip to content

Commit

Permalink
Merge pull request #53 from SteveDallas/master
Browse files Browse the repository at this point in the history
Fix to deconflict with Pushover plugin
  • Loading branch information
CodingTheUnknown authored Apr 2, 2021
2 parents b3b8133 + bc7cffd commit 2208205
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion octoprint_TpLinkAutoShutdown/static/js/settingsControll.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ window.onload = function() {

document.getElementById("update").onclick = function update_info (){
var address = document.getElementById("address").value;
var deviceType = document.getElementById("device").value;
var deviceType = document.getElementById("deviceType").value;
OctoPrint.simpleApiCommand("TpLinkAutoShutdown", "update", {"url": address, "deviceType": deviceType})
.done(function(responce){
//console.log(responce.res.dev_name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<div id="plugSettings">
<p><b><u>Plug IP Address:</u></b></p>
<input type="text" id="address" class="input-box-level" data-bind="value: settings.plugins.TpLinkAutoShutdown.url">
<select name="DeviceType" id="device" data-bind="value: settings.plugins.TpLinkAutoShutdown.deviceType">
<select name="DeviceType" id="deviceType" data-bind="value: settings.plugins.TpLinkAutoShutdown.deviceType">
<option value="smartPlug">Smart Plug</option>
<option value="smartStrip">Smart Strip</option>
</select>
Expand Down

0 comments on commit 2208205

Please sign in to comment.