Browse Source

txid modal linked to tx history box. need to fix, it's buggy

master
Satinder Grewal 8 years ago
parent
commit
12832b3b63
  1. 19
      assets/scripts/kmd_wallet_dashboard.js
  2. 61
      index.html

19
assets/scripts/kmd_wallet_dashboard.js

@ -92,6 +92,19 @@ var KMDWalletDashboard = function() {
var kmd_addr_txid_info = KMDGetTransactionIDInfo($(this).data('txid'));
console.log(kmd_addr_txid_info);
$('#kmd_txid_info_amount').text(kmd_addr_txid_info[0].amount);
$('#kmd_txid_info_fee').text(kmd_addr_txid_info[0].fee);
$('#kmd_txid_info_confirmations').text(kmd_addr_txid_info[0].confirmations);
$('#kmd_txid_info_blockhash').text(kmd_addr_txid_info[0].blockhash);
$('#kmd_txid_info_blockindex').text(kmd_addr_txid_info[0].blockindex);
$('#kmd_txid_info_blocktime').text(kmd_addr_txid_info[0].blocktime);
$('#kmd_txid_info_txid').text(kmd_addr_txid_info[0].txid);
$('#kmd_txid_info_walletconflicts').text(kmd_addr_txid_info[0].walletconflicts);
$('#kmd_txid_info_time').text(kmd_addr_txid_info[0].time);
$('#kmd_txid_info_timereceived').text(kmd_addr_txid_info[0].timereceived);
$('#kmd_txid_info_vjoinsplit').text(kmd_addr_txid_info[0].vjoinsplit);
$('#kmd_txid_info_details').text(kmd_addr_txid_info[0].details);
$('#kmd_txid_info_hex').val(kmd_addr_txid_info[0].hex);
});
};
@ -456,7 +469,7 @@ function KMDGetPublicTransactions() {
}
//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 = ['<span class="label label-default"><i class="icon fa-eye"></i> public</span>',tmp_category,AjaxOutputData[index].confirmations,AjaxOutputData[index].amount,tmp_secondsToString,tmp_addr,'<button type="button" class="btn btn-xs white btn-info waves-effect waves-light" data-toggle="modal" data-dismiss="modal" id="kmd-txid-details-btn" data-txid-type="public" data-txid="'+AjaxOutputData[index].txid+'"><i class="icon fa-search"></i></button>']
tmplisttransactions = ['<span class="label label-default"><i class="icon fa-eye"></i> public</span>',tmp_category,AjaxOutputData[index].confirmations,AjaxOutputData[index].amount,tmp_secondsToString,tmp_addr,'<button type="button" class="btn btn-xs white btn-info waves-effect waves-light" data-toggle="modal" data-target="#kmd_txid_info_mdl" id="kmd-txid-details-btn" data-txid-type="public" data-txid="'+AjaxOutputData[index].txid+'"><i class="icon fa-search"></i></button>']
//console.log(tmplisttransactions);
result.push(tmplisttransactions);
});
@ -524,7 +537,7 @@ function KMDGetProtectedTransactions() {
tmplistZtransactions = ['<span class="label label-dark"><i class="icon fa-eye-slash"></i> private</span>',tmp_category,tmp_confirmations,tmp_amount,tmp_secondsToString,tmp_addr,'<button type="button" class="btn btn-xs white btn-info waves-effect waves-light" data-toggle="modal" data-dismiss="modal" id="kmd-txid-details-btn" data-txid-type="private" data-txid="'+txidvalue.txid+'"><i class="icon fa-search"></i></button>']
tmplistZtransactions = ['<span class="label label-dark"><i class="icon fa-eye-slash"></i> private</span>',tmp_category,tmp_confirmations,tmp_amount,tmp_secondsToString,tmp_addr,'<button type="button" class="btn btn-xs white btn-info waves-effect waves-light" data-toggle="modal" data-target="#kmd_txid_info_mdl" id="kmd-txid-details-btn" data-txid-type="private" data-txid="'+txidvalue.txid+'"><i class="icon fa-search"></i></button>']
//console.log(tmplistZtransactions);
result.push(tmplistZtransactions);
});
@ -555,7 +568,7 @@ function KMDfillTxHistoryT() {
var txhistorydataZ = KMDGetProtectedTransactions();
var txhistorydata = $.merge( txhistorydataT, txhistorydataZ );
//console.log(txhistorydata);
if ( $.fn.dataTable.isDataTable( '#kmd-tx-history-tbl' ) ) {
$('#kmd-tx-history-tbl').DataTable( { data: txhistorydata,
"order": [[ 4, "desc" ]],

61
index.html

@ -829,7 +829,66 @@
</div>
<!-- Modal -->
<div class="modal fade modal-3d-sign" id="kmd_txid_info_mdl" aria-hidden="false" role="dialog"
tabindex="-1">
<div class="modal-dialog modal-center modal-lg">
<div class="modal-content">
<!--<div class="modal-header bg-orange-a400 wallet-send-header">
<button type="button" class="close white" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title white"><span class="icon fa-search" style="margin: 0;"></span> Transaction ID <span id="mdl_txid_info_coin_name"></span></h4>
</div>-->
<div class="modal-body">
<!-- Iguana Wallet Settings Box Tab -->
<div class="panel nav-tabs-horizontal">
<ul class="nav nav-tabs nav-tabs-line" data-plugin="nav-tabs" role="tablist">
<li class="active" role="presentation"><a data-toggle="tab" href="#KmdTxIDInfotab1" aria-controls="KmdTxIDInfotab1" role="tab"><i class="icon md-balance-wallet" aria-hidden="true"></i>TxID Info</a></li>
<li role="presentation"><a data-toggle="tab" href="#KmdTxIDInfotab2" aria-controls="KmdTxIDInfotab2" role="tab"><i class="icon md-plus-square" aria-hidden="true"></i>vjointsplits, details</a></li>
<li role="presentation"><a data-toggle="tab" href="#KmdTxIDInfotab3" aria-controls="KmdTxIDInfotab3" role="tab"><i class="icon wb-briefcase" aria-hidden="true"></i>hex</a></li>
</ul>
<div class="panel-body">
<div class="tab-content">
<div class="tab-pane active" id="KmdTxIDInfotab1" role="tabpanel">
<table class="table table-striped">
<tbody>
<tr><td>amount</td><td><span id="kmd_txid_info_amount"></span></td></tr>
<tr><td>fee</td><td><span id="kmd_txid_info_fee"></span></td></tr>
<tr><td>confirmations</td><td><span id="kmd_txid_info_confirmations"></span></td></tr>
<tr><td>blockhash</td><td><span id="kmd_txid_info_blockhash"></span></td></tr>
<tr><td>blockindex</td><td><span id="kmd_txid_info_blockindex"></span></td></tr>
<tr><td>blocktime</td><td><span id="kmd_txid_info_blocktime"></span></td></tr>
<tr><td>txid</td><td><span id="kmd_txid_info_txid"></span></td></tr>
<tr><td>walletconflicts</td><td><span id="kmd_txid_info_walletconflicts"></span></td></tr>
<tr><td>time</td><td><span id="kmd_txid_info_time"></span></td></tr>
<tr><td>timereceived</td><td><span id="kmd_txid_info_timereceived"></span></td></tr>
</tbody>
</table>
</div>
<div class="tab-pane" id="KmdTxIDInfotab2" role="tabpanel">
<table class="table table-striped">
<tbody>
<tr><td>vjoinsplit</td><td><span id="kmd_txid_info_vjoinsplit"></span></td></tr>
<tr><td>details</td><td><span id="kmd_txid_info_details"></span></td></tr>
</tbody>
</table>
</div>
<div class="tab-pane" id="KmdTxIDInfotab3" role="tabpanel">
<textarea id="kmd_txid_info_hex" style="width: 100%; height: 170px" rows="10" cols="80" disabled></textarea>
</div>
</div>
</div>
</div>
<!-- End Iguana Wallet Settings Box Tab -->
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- End Modal -->
</div>
<!-- END KOMODO WALLET CONTENT BODY -->

Loading…
Cancel
Save