Browse Source

test

master
Satinder Grewal 8 years ago
parent
commit
275d33a834
  1. 31
      assets/scripts/kmd_wallet_dashboard.js
  2. 2
      index.html

31
assets/scripts/kmd_wallet_dashboard.js

@ -40,6 +40,7 @@ var KMDWalletDashboard = function() {
});
$('.showkmdwalletaddrs').selectpicker({ style: 'btn-info' });
//KMDfillTxHistoryT();
});
$('.showkmdwalletaddrs').on('change', function(){
@ -395,8 +396,14 @@ function KMDGetPublicTransactions() {
//console.log(AjaxOutputData);
$.each(AjaxOutputData, function(index, value) {
//console.log(value);
tmplisttransactions = {"type":"public","category": AjaxOutputData[index].category,"confirmations": AjaxOutputData[index].confirmations,"amount": AjaxOutputData[index].amount,"time": AjaxOutputData[index].time,"address": AjaxOutputData[index].address,"txid": AjaxOutputData[index].txid}
console.log(value);
tmp_addr == ' - No Address - ';
if(AjaxOutputData[index].hasOwnProperty('address')) {
var tmp_addr = AjaxOutputData[index].address;
}
console.log(tmp_addr);
//tmplisttransactions = {"type":"public","category": AjaxOutputData[index].category,"confirmations": AjaxOutputData[index].confirmations,"amount": AjaxOutputData[index].amount,"time": AjaxOutputData[index].time,"address": AjaxOutputData[index].address,"txid": AjaxOutputData[index].txid}
tmplisttransactions = ["public",AjaxOutputData[index].category,AjaxOutputData[index].confirmations,AjaxOutputData[index].amount,AjaxOutputData[index].time,"tmp_addr",AjaxOutputData[index].txid]
//console.log(tmplisttransactions);
result.push(tmplisttransactions);
});
@ -418,20 +425,10 @@ function KMDGetPublicTransactions() {
function KMDfillTxHistoryT() {
var txhistorydata = KMDGetPublicTransactions();
console.log(txhistorydata);
var txdata = {"data": [txhistorydata]}
console.log(txdata);
$('#kmd-tx-history-tbl').DataTable( { data: txdata,
columns: [
{data: "address" },
{data: "amount" },
{data: "category" },
{data: "confirmations" },
{data: "time" },
{data: "txid" },
{data: "type" }
],
select: true,
paging: false,
searching: false
$('#kmd-tx-history-tbl').DataTable( { data: txhistorydata,
"order": [[ 4, "desc" ]],
select: true,
paging: true,
searching: true
} );
}

2
index.html

@ -790,6 +790,7 @@
<tr>
<th>Type</th>
<th>Category</th>
<th>Confirmations</th>
<th>Amount</th>
<th>Time</th>
<th>Address</th>
@ -800,6 +801,7 @@
<tr>
<th>Type</th>
<th>Category</th>
<th>Confirmations</th>
<th>Amount</th>
<th>Time</th>
<th>Address</th>

Loading…
Cancel
Save