manual status update removed
authorNeszt Tibor <neszt.tibor@euronetrt.hu>
Thu, 7 Dec 2017 14:17:57 +0000 (15:17 +0100)
committerNeszt Tibor <neszt.tibor@euronetrt.hu>
Thu, 7 Dec 2017 14:17:57 +0000 (15:17 +0100)
index.php
js/main.js

index 07ffa60..ae0dd3b 100755 (executable)
--- a/index.php
+++ b/index.php
@@ -156,7 +156,6 @@ if ( isset($_GET['config']) ) {
        print "<hr/>";
        print "<button type=\"button\" class=\"btn btn-success\" name=\"start\">Start</button>";
        print "<button type=\"button\" class=\"btn btn-warning\" name=\"stop\" >Stop</button>";
-       print "<button type=\"button\" class=\"btn btn-info\" name=\"status\" >Status</button>";
        print "<button type=\"button\" class=\"btn btn-danger\" name=\"reboot\" >Reboot</button>";
        print "<input type=\"checkbox\" name=\"bgonoff\" id=\"checkbox1\" $is_bg_checked_html><label for=\"checkbox1\">Show background</label></div>";
        print "<input type=\"checkbox\" name=\"bootonoff\" id=\"checkbox2\" $is_boot_checked_html><label for=\"checkbox2\">Start on boot</label></div>";
index 55f9cff..8f5aa52 100644 (file)
@@ -127,20 +127,6 @@ function init() {
                                ;
                        })
        });
-       $('button[name=status]').click(function() {
-               $.ajax({
-                       type: 'GET',
-                       url: 'index.php',
-                       dataType: 'json',
-                       data: { config: '1', status: '1'}
-               })
-                       .done(function(msg) {
-                               $("#status").html(msg['cmd_out']);
-                       })
-                       .fail(function(msg) {
-                               ;
-                       })
-       });
        $('input[name=bgonoff]').click(function() {
                $.ajax({
                        type: 'GET',