Browse Source

basic receive qr code coded

master
Satinder Grewal 8 years ago
parent
commit
bf15183a83
  1. 17
      assets/scripts/coinwallets.js
  2. 7
      index.html

17
assets/scripts/coinwallets.js

@ -52,6 +52,15 @@ function sendCurrency(val) {
function ReceiveCurrency(rec_val) {
console.log(rec_val);
if ( sessionStorage.getItem('IguanaActiveAccount') === null ) {
console.log('=> No wallet logged in. No need to get Rates.');
} else {
var tmp_activhndl = JSON.parse(sessionStorage.getItem('IguanaActiveAccount'));
$('#mdl_receive_coin_addr').text('');
$('#mdl_receive_coin_addr').text(JSON.parse(tmp_activhndl)[rec_val.currency]);
$('#mdl_receive_coin_addr_qr_code').text('');
$('#mdl_receive_coin_addr_qr_code').qrcode({width: 120,height: 120,text: JSON.parse(tmp_activhndl)[rec_val.currency]});
}
}
$('#mdl_currency_amount').keyup(function() {
@ -146,6 +155,11 @@ function CurrencyMdlBtnClean() {
$('#mdl_currency_total_fiat_value').text('0.00');
}
function ReceiveCoinMdlBtnClean() {
$('#mdl_receive_coin_addr').text('');
$('#mdl_receive_coin_addr_qr_code').text('');
}
function ConfirmsendCurrency(confirm_val) {
var confirm_coinname = $('#mdl_currency_total_coinname').text();
@ -241,6 +255,9 @@ function ExecuteSendCurrencyAPI() {
$('#mdl_confirm_currency_sendfrom_total_dedcut').text('');
$('#mdl_confirm_currency_coinname_total').text('');
$('#mdl_confirm_currency_sendfrom_total_deduct_fiat').text('');
//Clean send dialog button fields
CurrencyMdlBtnClean();
}

7
index.html

@ -398,10 +398,13 @@
<span class="white">This is your default Iguana wallet address.</span>
</div>
<div class="modal-body">
<div class="row">
<div class="col-xs-12"><b>To:</b></div>
<span class="col-xs-6" id="mdl_receive_coin_addr"></span>
<span class="col-xs-6" id="mdl_receive_coin_addr_qr_code" style="width: 60px;"></span>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-toggle="modal" data-dismiss="modal">Done</button>
<button type="button" class="btn btn-primary" data-toggle="modal" data-dismiss="modal" id="mdl_receive_coin_done_btn" onclick="ReceiveCoinMdlBtnClean()">Done</button>
</div>
</div>
</div>

Loading…
Cancel
Save