|
|
@ -292,3 +292,33 @@ function Settings_AddCoinPeers() { |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
function Settings_LoadDebugLog() { |
|
|
|
console.log("wait till peer ip added to selected coin...") |
|
|
|
var settings_selected_coinname_code_val = $("option:selected","#settings_select_coin_addpeer_options").val(); |
|
|
|
var settings_add_peer_ip_val = $("#settings_add_peer_ip").val(); |
|
|
|
var ajax_data = { 'herdname': 'iguana', 'lastLines': 5 }; |
|
|
|
$.ajax({ |
|
|
|
type: 'POST', |
|
|
|
data: JSON.stringify(ajax_data), |
|
|
|
url: 'http://127.0.0.1:17777/shepherd/debuglog', |
|
|
|
//dataType: 'text',
|
|
|
|
success: function(data, textStatus, jqXHR) { |
|
|
|
//var getAddCoinPeers = JSON.parse(data);
|
|
|
|
console.log(data); |
|
|
|
/*if ( getAddCoinPeers.result == 'addnode submitted' ) { |
|
|
|
toastr.success(settings_add_peer_ip_val + " added to " + settings_selected_coinname_code_val + " Successfully", "Coin Notification"); |
|
|
|
$("#settings_add_peer_ip").val(''); |
|
|
|
}*/ |
|
|
|
}, |
|
|
|
error: function(xhr, textStatus, error) { |
|
|
|
console.log('failed getting.'); |
|
|
|
console.log(xhr.statusText); |
|
|
|
if ( xhr.readyState == 0 ) { |
|
|
|
Iguana_ServiceUnavailable(); |
|
|
|
} |
|
|
|
console.log(textStatus); |
|
|
|
console.log(error); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |