make async ajax calls
This commit is contained in:
parent
4df57f612e
commit
2ba96b6a2f
@ -63,7 +63,6 @@ window.onload = function(){
|
|||||||
$.ajax({
|
$.ajax({
|
||||||
url: '{/literal}{$smarty.server.PHP_SELF}?page=api&action=getdashboarddata&api_key={$GLOBAL.userdata.api_key}&id={$GLOBAL.userdata.id}{literal}',
|
url: '{/literal}{$smarty.server.PHP_SELF}?page=api&action=getdashboarddata&api_key={$GLOBAL.userdata.api_key}&id={$GLOBAL.userdata.id}{literal}',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
async: false,
|
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
g1.refresh(parseFloat(data.getdashboarddata.network.hashrate).toFixed(2));
|
g1.refresh(parseFloat(data.getdashboarddata.network.hashrate).toFixed(2));
|
||||||
g2.refresh(parseFloat(data.getdashboarddata.pool.hashrate).toFixed(2));
|
g2.refresh(parseFloat(data.getdashboarddata.pool.hashrate).toFixed(2));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user