Browse Source

few more updates

master
Satinder Grewal 8 years ago
parent
commit
7714d8c26d
  1. 17
      assets/scripts/dashboard.js
  2. 8
      assets/scripts/iguana_api.js
  3. 4
      index.html

17
assets/scripts/dashboard.js

@ -295,6 +295,7 @@ var Dashboard = function() {
var active_edexcoin = ''; var active_edexcoin = '';
var tmp_send_to_addr = ''; var tmp_send_to_addr = '';
var tmp_send_total_amount = ''; var tmp_send_total_amount = '';
$('#edexcoin_send_coins_btn').prop('disabled', false);
edexcoin_send_form_validator.resetForm(); edexcoin_send_form_validator.resetForm();
}); });
@ -619,7 +620,7 @@ var Dashboard = function() {
console.log('wallet widget refereshed (every 15 seconds)'); console.log('wallet widget refereshed (every 15 seconds)');
}, 15000);*/ }, 15000);*/
RunTotalFiatValue = setInterval(function() { /*RunTotalFiatValue = setInterval(function() {
if ( sessionStorage.getItem('IguanaActiveAccount') === null ) { if ( sessionStorage.getItem('IguanaActiveAccount') === null ) {
//console.log('=> No wallet logged in. No need to get Rates.'); //console.log('=> No wallet logged in. No need to get Rates.');
//StopTotalFiatValue(); //StopTotalFiatValue();
@ -627,7 +628,7 @@ var Dashboard = function() {
//TotalFiatValue(); //TotalFiatValue();
//console.log('Get Rates (every 60 seconds)'); //console.log('Get Rates (every 60 seconds)');
} }
}, 60000); }, 60000);*/
} }
@ -695,8 +696,18 @@ function edexCoinBtnAction() {
$('#edexcoin_active_addr').text(result); $('#edexcoin_active_addr').text(result);
$('#edexcoin_active_addr_clipboard').attr("data-clipboard-text",result) $('#edexcoin_active_addr_clipboard').attr("data-clipboard-text",result)
}) })
var clipboard = new Clipboard('.btn');
$('#edexcoin_active_addr_clipboard').click(function(){alertify.success("Address Copied.");}) $('#edexcoin_active_addr_clipboard').click(function(){alertify.success("Address Copied.");})
var clipboard = new Clipboard('.clipboard-edexaddr');
clipboard.destroy();
var clipboard = null;
if( clipboard != null ) {
clipboard.destroy();
}
var clipboard = new Clipboard('.clipboard-edexaddr');
clipboard.on('success', function(e) { clipboard.on('success', function(e) {
console.info('Action:', e.action); console.info('Action:', e.action);
console.info('Text:', e.text); console.info('Text:', e.text);

8
assets/scripts/iguana_api.js

@ -727,10 +727,10 @@ function EDEXSendToAddr(data) {
var selected_coinmode = sessionStorage.getItem('edexTmpMode') var selected_coinmode = sessionStorage.getItem('edexTmpMode')
if ( selected_coinmode == 'Basilisk' ) { if ( selected_coinmode == 'Basilisk' ) {
var active_edexcoin = $('[data-edexcoin]').attr("data-edexcoin"); var active_edexcoin = $('[data-edexcoin]').attr("data-edexcoin");
var coinwalletbalance = getDEXCoinBalance(active_edexcoin) getDEXGetBalance(active_edexcoin).then(function(result){
console.log(coinwalletbalance) //console.log(result)
//coinwalletbalance = coinwalletbalance.total $('#edex_total_balance').text(result.total);
$('#edex_total_balance').text(coinwalletbalance.total); });
} else { } else {
var active_edexcoin = $('[data-edexcoin]').attr("data-edexcoin"); var active_edexcoin = $('[data-edexcoin]').attr("data-edexcoin");
var tmp_get_coin_balance = EDEXlistunspent(active_edexcoin) var tmp_get_coin_balance = EDEXlistunspent(active_edexcoin)

4
index.html

@ -718,7 +718,7 @@
<!-- Begin page header --> <!-- Begin page header -->
<div class="page-header page-header-bordered header-easydex" id="header-dashboard" data-edexcoin="COIN" style="display: none;"> <div class="page-header page-header-bordered header-easydex" id="header-dashboard" data-edexcoin="COIN" style="display: none;">
<ol class="breadcrumb" data-edexcoin="COIN"> <ol class="breadcrumb" data-edexcoin="COIN">
<b>My <span data-edexcoin="COIN" id="edexcoin-active">-</span> Address: </b> <span data-edexcoin="COIN" id="edexcoin_active_addr">-</span> <button class="btn btn-default btn-xs" data-edexcoin="COIN" id="edexcoin_active_addr_clipboard" data-clipboard-text=""><i class="icon wb-copy" aria-hidden="true"></i> copy</button> <b>My <span data-edexcoin="COIN" id="edexcoin-active">-</span> Address: </b> <span data-edexcoin="COIN" id="edexcoin_active_addr">-</span> <button class="btn btn-default btn-xs clipboard-edexaddr" data-edexcoin="COIN" id="edexcoin_active_addr_clipboard" data-clipboard-text=""><i class="icon wb-copy" aria-hidden="true"></i> copy</button>
</ol> </ol>
<div class="page-header-actions" data-edexcoin="COIN" id="edexcoin-actions"> <div class="page-header-actions" data-edexcoin="COIN" id="edexcoin-actions">
<!-- EasyDEX Coin Wallet Header button --> <!-- EasyDEX Coin Wallet Header button -->
@ -1900,7 +1900,7 @@
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
jQuery(document).ready(function(){ jQuery(document).ready(function(){
//jQuery('.scrollbar-dynamic').scrollbar(); jQuery('.scrollbar-dynamic').scrollbar();
}); });
</script> </script>
<script>if (window.module) module = window.module;</script> <script>if (window.module) module = window.module;</script>

Loading…
Cancel
Save