From 5a884220f09c8502ecb0cfdf4a994c96d0091eb6 Mon Sep 17 00:00:00 2001 From: satindergrewal Date: Tue, 2 Jan 2018 22:52:41 +1300 Subject: [PATCH] [bugfix] switch trading coin pair now updates buy/sell tabs properly with updated coin tags --- gui/js/simpledexactions.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gui/js/simpledexactions.js b/gui/js/simpledexactions.js index 37af2cf..cad1907 100644 --- a/gui/js/simpledexactions.js +++ b/gui/js/simpledexactions.js @@ -933,6 +933,12 @@ $('.btn_switch_trading_coin_pairs').click(function(e){ $('.relvol_basevol_coin').html(coin_pair2); + coin = $('.trading_pair_coin2').selectpicker('val'); + $('.coin_ticker').html(coin); + $.each($('.coinexchange[data-coin]'), function(index, value) { + $('.coinexchange[data-coin]').data('coin', coin); + }); + bot_screen_sellcoin_balance(); bot_screen_coin_balance();