diff --git a/assets/scripts/kmd_wallet_dashboard.js b/assets/scripts/kmd_wallet_dashboard.js index 8bfffc5..3652ff1 100644 --- a/assets/scripts/kmd_wallet_dashboard.js +++ b/assets/scripts/kmd_wallet_dashboard.js @@ -146,7 +146,13 @@ function RunInitFunctions() { } function getTotalKMDBalance() { - var ajax_data = {"agent":"komodo","method":"passthru","function":"z_gettotalbalance","hex":"3100"} + console.log($('#extcoin-wallet').data('extcoin')); + var extcoin = $('#extcoin-wallet').data('extcoin'); + var passthru_agent = ''; + if ( extcoin == 'KMD') { passthru_agent = 'komodo'; }; + if ( extcoin == 'ZEC') { passthru_agent = 'zcash'; }; + + var ajax_data = {"agent":passthru_agent,"method":"passthru","function":"z_gettotalbalance","hex":"3000"} console.log(ajax_data); $.ajax({ type: 'POST', diff --git a/assets/scripts/sidebar.js b/assets/scripts/sidebar.js index b8c9a6c..c79f700 100644 --- a/assets/scripts/sidebar.js +++ b/assets/scripts/sidebar.js @@ -4,7 +4,7 @@ $(document).ready(function() { $('#section-dashboard').show(); $('#header-dashboard').show(); $('#section-easydex').hide(); - $('#section-komodo').hide(); + $('#section-extcoin').hide(); $('#section-zcash').hide(); $('#section-iguana-atomic-explorer').hide(); $('#section-iguana-wallet-settings').hide(); @@ -27,7 +27,7 @@ $('#nav-dashboard').on('click', function() { $('#section-dashboard').show(); $('#header-dashboard').show(); $('#section-easydex').hide(); - $('#section-komodo').hide(); + $('#section-extcoin').hide(); $('#section-zcash').hide(); $('#section-iguana-atomic-explorer').hide(); $('#section-iguana-wallet-settings').hide(); @@ -49,7 +49,7 @@ $('#nav-easydex').on('click', function() { $('#section-dashboard').hide(); $('#header-dashboard').hide(); $('#section-easydex').show(); - $('#section-komodo').hide(); + $('#section-extcoin').hide(); $('#section-zcash').hide(); $('#section-about-iguana').hide(); $('#section-iguana-atomic-explorer').hide(); @@ -76,7 +76,7 @@ $('#nav-komodo-wallet').on('click', function() { $('#section-dashboard').hide(); $('#header-dashboard').hide(); $('#section-easydex').hide(); - $('#section-komodo').show(); + $('#section-extcoin').show(); $('#section-zcash').hide(); $('#section-about-iguana').hide(); $('#section-iguana-atomic-explorer').hide(); @@ -106,7 +106,7 @@ $('#nav-zcash-wallet').on('click', function() { $('#section-dashboard').hide(); $('#header-dashboard').hide(); $('#section-easydex').hide(); - $('#section-komodo').hide(); + $('#section-extcoin').hide(); $('#section-zcash').show(); $('#section-about-iguana').hide(); $('#section-iguana-atomic-explorer').hide(); @@ -130,7 +130,7 @@ $('#nav-iguana-atomic-explorer').on('click', function() { $('#section-dashboard').hide(); $('#header-dashboard').hide(); $('#section-easydex').hide(); - $('#section-komodo').hide(); + $('#section-extcoin').hide(); $('#section-zcash').hide(); $('#section-iguana-atomic-explorer').show(); $('#section-iguana-wallet-settings').hide(); @@ -152,7 +152,7 @@ $('#nav-iguana-wallet-settings').on('click', function() { $('#section-dashboard').hide(); $('#header-dashboard').hide(); $('#section-easydex').hide(); - $('#section-komodo').hide(); + $('#section-extcoin').hide(); $('#section-zcash').hide(); $('#section-iguana-atomic-explorer').hide(); $('#section-iguana-wallet-settings').show(); @@ -175,7 +175,7 @@ $('#nav-about-iguana').on('click', function() { $('#section-dashboard').hide(); $('#header-dashboard').hide(); $('#section-easydex').hide(); - $('#section-komodo').hide(); + $('#section-extcoin').hide(); $('#section-zcash').hide(); $('#section-iguana-atomic-explorer').hide(); $('#section-iguana-wallet-settings').hide(); diff --git a/index.html b/index.html index fc9d5b5..cba2491 100755 --- a/index.html +++ b/index.html @@ -618,8 +618,8 @@ -