From 2f9623cde3c1e5f789df9e9ba43f96c5cc125070 Mon Sep 17 00:00:00 2001 From: Satinder Grewal Date: Tue, 6 Sep 2016 13:02:38 +1200 Subject: [PATCH] test: fix addcoin issue --- assets/scripts/iguana_api.js | 6 +++--- assets/scripts/login.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/scripts/iguana_api.js b/assets/scripts/iguana_api.js index 9991f90..eb29ead 100644 --- a/assets/scripts/iguana_api.js +++ b/assets/scripts/iguana_api.js @@ -259,9 +259,9 @@ function Iguana_addcoin(addcoin_data) { if (addcoinData.result === 'coin added') { console.log('coin added'); toastr.success(logincoinfullname+" started in "+ logincoinmodeinfo +" Mode", "Coin Notification"); - if ( typeof addcoin_data.reload == 'undefined' || addcoin_data.reload != false ) { - location.reload(); - } + //if ( typeof addcoin_data.reload == 'undefined' || addcoin_data.reload != false ) { + $(document).ready(function() { Dashboard.init(); }); + //} } else if (addcoinData.result === 'coin already there') { console.log('coin already there'); toastr.info("Looks like "+ logincoinfullname +" already running.", "Coin Notification"); diff --git a/assets/scripts/login.js b/assets/scripts/login.js index df4bf67..764045a 100644 --- a/assets/scripts/login.js +++ b/assets/scripts/login.js @@ -507,7 +507,7 @@ var Login = function() { $('#logint-another-wallet').hide(); } else { var CheckLoginData = JSON.parse(sessionStorage.getItem('IguanaActiveAccount')); - if ( JSON.parse(CheckLoginData).rmd160 != Iguana_activehandle_output.rmd160 ) { + if ( JSON.parse(CheckLoginData).pubkey != Iguana_activehandle_output.pubkey ) { //console.log("Login: sessionStorage data and activehandle data doesn't match"); //console.log('Iguana_activehandle_output: '+Iguana_activehandle_output.rmd160); //console.log('CheckLoginData: ' + JSON.parse(CheckLoginData).rmd160);