Disable buttons on docker page by default

This commit is contained in:
bergware
2018-03-09 15:47:04 +01:00
parent 27849cbca4
commit fc97bd09b8
2 changed files with 5 additions and 5 deletions
@@ -43,10 +43,10 @@ th.three{width:3%}
<thead><tr><th></th><th>Application</th><th>Version</th><th>Network</th><th>Port Mappings <small>(App to Host)</small></th><th>Volume Mappings <small>(App to Host)</small></th><th width="80px" style="text-align:center">Autostart</th><th class="three">Log</th></tr></thead>
<tbody id="docker_list"><tr><td colspan='8' style='text-align:center;padding-top:12px'><i class='fa fa-spinner fa-spin icon'></i>Please wait... retrieving container information</td></tr></tbody>
</table>
<input type="button" onclick="addContainer()" value="Add Container">
<input type="button" onclick="startAll()" value="Start all Containers">
<input type="button" onclick="stopAll()" value="Stop all Containers">
<input type="button" onclick="checkAll()" value="Check for Updates" id="checkAll">
<input type="button" onclick="addContainer()" value="Add Container" disabled>
<input type="button" onclick="startAll()" value="Start all Containers" disabled>
<input type="button" onclick="stopAll()" value="Stop all Containers" disabled>
<input type="button" onclick="checkAll()" value="Check for Updates" id="checkAll" disabled>
<input type="button" onclick="updateAll()" value="Update all Containers" id="updateAll" style="display:none">
<script src="<?autov('/webGui/javascript/jquery.switchbutton.js')?>"></script>
@@ -22,6 +22,6 @@ if ($_POST['check']) {
$DockerTemplates->getAllInfo(true);
}
foreach ($DockerTemplates->getAllInfo() as $info) {
if ($info['updated']=='false'&&$info['updated']!='undef') {echo 'true'; break;}
if ($info['updated']=='false' && $info['updated']!='undef') {echo 'true'; break;}
}
?>