Added ability to disable rediscovery button for devices

This commit is contained in:
laf
2014-10-02 20:23:32 +01:00
parent 2be63b2041
commit ece190493d
2 changed files with 8 additions and 0 deletions
+6
View File
@@ -65,9 +65,15 @@ if ($updated && $update_message)
</div>
<div class="col-sm-1">
</div>
<?php
if($config['disable_clear_discovery'] == 0) {
?>
<div class="col-sm-1">
<button type="submit" id="rediscover" data-device_id="<?php echo($device['device_id']); ?>" class="btn btn-primary" name="rediscover">Rediscover device</button>
</div>
<?php
}
?>
</div>
<br />
<form id="edit" name="edit" method="post" action="" role="form" class="form-horizontal">
+2
View File
@@ -578,4 +578,6 @@ $config['dateformat']['long'] = "r"; # RFC2822 style
$config['dateformat']['compact'] = "Y-m-d H:i:s";
$config['dateformat']['time'] = "H:i:s";
$config['disable_clear_discovery'] = 0;// Set this to 1 if you want to disable the web option to rediscover devices
?>