ax({
        async: false,
        dataType: 'json',
        timeout: 1,
        url: '/functions/mining/getstatus',
        success: function(result) {
          switch (result) {
            case 'Running': 
              document.getElementById('btn-miningstart').disabled = true;
              document.getElementById('btn-miningstart').title = "Mining and background processes are already running.";
              document.getElementById('btn-miningpause').disabled = false;
              document.getElemen