Browse Source

extcoin section changes to sidebar and getbalance api

master
Satinder Grewal 8 years ago
parent
commit
9dfdbbc0ef
  1. 8
      assets/scripts/kmd_wallet_dashboard.js
  2. 16
      assets/scripts/sidebar.js
  3. 4
      index.html

8
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',

16
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();

4
index.html

@ -618,8 +618,8 @@
<!-- END EASYDEX CONTENT BODY -->
<!-- BEGIN KOMODO WALLET CONTENT BODY -->
<div class="page-content" data-extcoin="COIN" id="section-komodo">
<div class="row" data-extcoin="COIN" id="komodo-wallet" data-plugin="masonry">
<div class="page-content" data-extcoin="COIN" id="section-extcoin">
<div class="row" data-extcoin="COIN" id="extcoin-wallet" data-plugin="masonry">
<div class="col-xs-12">
<div class="col-lg-4 col-xs-12">
<!-- KMD Transparent Balance Widget-->

Loading…
Cancel
Save