js file wording moved to language file update

This commit is contained in:
satindergrewal 2017-12-26 08:10:42 +13:00
parent 4fdd8c4bc9
commit a73d44e4bb
3 changed files with 192 additions and 88 deletions

View File

@ -18,6 +18,7 @@
"btn_exchange": "Exchange",
"btn_close_smallcaps": "Close",
"btn_open_smallcaps": "Open",
"btn_cancel": "Cancel",
"yes_caps": "YES",
"yes_small": "Yes",
"no_caps": "NO",
@ -27,6 +28,22 @@
"loading": {
"starting_barterdex": "Starting BarterDEX. Please wait..."
},
"CoinControl": {
"coincontrol_toastr_title_coin_status": "Coin Status",
"coincontrol_enabled": "Enabled",
"coincontrol_disabled": "Disabled",
"coincontrol_enable": "Enable",
"coincontrol_disable": "Disable",
"coincontrol_native_mode": "Native Mode",
"coincontrol_electrum_mode": "Electrum Mode",
"coincontrol_couldnt_find_coin_locally_installed": "Couldn't find this coin locally installed",
"coincontrol_it_seems_you_dont_have_p1": "It seems you don't have this coin wallet installed on your OS. Please check these following points to make sure you have your wallet setup properly:",
"coincontrol_it_seems_you_dont_have_check_points_li_01": "Make sure your wallet is installed properly.",
"coincontrol_it_seems_you_dont_have_check_points_li_02": "Make sure your wallet is running and synced to network.",
"coincontrol_it_seems_you_dont_have_check_points_li_03": "Make sure your wallet has proper RPC settings configured in it's configuration file.",
"coincontrol_it_seems_you_dont_have_check_points_li_04": "If you have all the above covered properly, please logout and then login back and try activating the coin again.",
"coincontrol_it_seems_you_dont_have_p2": "If you still having issues activating the your wallet, please get in touch with our support desk."
},
"login": {
"welcome_to_barterdex": "Welcome to BarterDEX",
"please_login": "Please Login",
@ -79,10 +96,27 @@
},
"Inventory": {
"inventory_tab_inventory": "Inventory"
"inventory_tab_inventory": "Inventory",
"inventory_th_index": "Index",
"inventory_th_coin_info": "Coin Info",
"inventory_th_value_info": "Value info",
"inventory_th_transaction_info": "Transaction Info",
"inventory_th_height": "Height",
"inventory_th_tx_hash": "Tx Hash",
"inventory_th_tx_pos": "Tx Pos",
"inventory_th_value": "Value",
"inventory_td_coin": "Coin",
"inventory_td_account": "Account",
"inventory_td_address": "Address",
"inventory_td_amount": "Amount",
"inventory_td_confirmations": "Confirmations",
"inventory_td_interest": "Interest",
"inventory_td_scriptpubkey": "scriptPubKey",
"inventory_td_txid": "TxID"
},
"Exchange": {
"exchange_your_balance": "Your Balance",
"exchange_coin_is_disabled_enable_before_trading": "Coin is disabled.<br>Please enable before trading",
"exchange_switch_pairs": "SWITCH PAIRS",
"exchange_trading_pair": "Trading Pair",
"exchange_speed_mode_settings": "Speed Mode Settings",
@ -106,6 +140,7 @@
"exchange_enable_auto_repeat_coinmarketcap": "Enable auto-repeat + CoinMarketCap Prices",
"exchange_itll_cost_you": "It'll cost you",
"exchange_set_small": "Sell",
"exchange_itll_get": "You'll get",
"exchange_goal_percent_for_your_portfolio": "Goal percentage for your portfolio",
"exchange_set_gaol_caps": "SET GOAL",
"exchange_0conf_settings_text_one": "The High Speed Mode feature enables you to make trades in seconds, without having to wait for blockchain confirmations.",

View File

@ -11,13 +11,14 @@
"loading_wait": "लोड हो रहा है...",
"btn_send": "भेजें",
"btn_receive": "प्राप्त करें",
"btn_enable_native": "जोड़ें Native",
"btn_enable_electrum": "जोड़ें Electrum",
"btn_disable": "अलग करें",
"btn_enable_native": "नेटिव जोड़ें",
"btn_enable_electrum": "इलेक्ट्रम जोड़ें",
"btn_disable": "निष्क्रिय करें",
"btn_set_goal": "लक्ष्य सेट करें",
"btn_exchange": "आदान प्रदान",
"btn_close_smallcaps": "बंद करे",
"btn_close_smallcaps": "बंद करे",
"btn_open_smallcaps": "Open",
"btn_cancel": "रद्द करें",
"yes_caps": "हाँ",
"yes_small": "हाँ",
"no_caps": "नहीं",
@ -26,6 +27,22 @@
"loading": {
"starting_barterdex": "BarterDEX शुरू हो रहा है। कृपया प्रतीक्षा करें..."
},
"CoinControl": {
"coincontrol_toastr_title_coin_status": "सिक्के की स्थिति",
"coincontrol_enabled": "चला दिया",
"coincontrol_disabled": "बंद कर दिया",
"coincontrol_enable": "सक्रिय करें",
"coincontrol_disable": "निष्क्रिय करें",
"coincontrol_native_mode": "नेटिव मोड",
"coincontrol_electrum_mode": "इलेक्ट्रम मोड",
"coincontrol_couldnt_find_coin_locally_installed": "येह सिक्का आपके सिस्टम पर इनस्टॉल नहीं मिला",
"coincontrol_it_seems_you_dont_have_p1": "ऐसा लगता है येह सिक्का आपके सिस्टम पर इनस्टॉल नहीं है। कृपया निचे दिये निर्देश देखें और सुनिश्चित करें की आपके सिक्के का सॉफ्टवेयर अच्छे से इनस्टॉल है:",
"coincontrol_it_seems_you_dont_have_check_points_li_01": "सुनिश्चित करें की आपके सिक्के का सॉफ्टवेयर अच्छे से इनस्टॉल है।",
"coincontrol_it_seems_you_dont_have_check_points_li_02": "सुनिश्चित करें की आपके सिक्के का सॉफ्टवेयर चल रहा है और नेटवर्क से synchronised है।",
"coincontrol_it_seems_you_dont_have_check_points_li_03": "सुनिश्चित करें की आपके सिक्के के सॉफ्टवेयर की RPC सेटिंग अच्छे से कॉन्फ़िगर की हुई हैं।",
"coincontrol_it_seems_you_dont_have_check_points_li_04": "अगर ऊपर दी हुई सभी चीज़े ठीक हैं तो कृपया कर BarterDEX को बंद कर फिर दोबारा से चलायें।",
"coincontrol_it_seems_you_dont_have_p2": "अगर फिर भी आपके सिक्के के सॉफ्टवेयर BarterDEX से नहीं जुड रहे, तो कृपया सहायक डेस्क से संपर्क करें।"
},
"login": {
"welcome_to_barterdex": "BarterDEX में आपका स्वागत है",
"please_login": "कृपया लॉगिन करें",
@ -75,10 +92,27 @@
"portfolio_set_goal": "लक्ष्य सेट करें"
},
"Inventory": {
"inventory_tab_inventory": "संख्यापत्र"
"inventory_tab_inventory": "संख्यापत्र",
"inventory_th_index": "क्रम",
"inventory_th_coin_info": "सिक्का जानकारी",
"inventory_th_value_info": "मूल्य जानकारी",
"inventory_th_transaction_info": "लेनदेन की जानकारी",
"inventory_th_height": "Height",
"inventory_th_tx_hash": "Tx Hash",
"inventory_th_tx_pos": "Tx Pos",
"inventory_th_value": "रकम",
"inventory_td_coin": "सिक्का",
"inventory_td_account": "खाता",
"inventory_td_address": "पता",
"inventory_td_amount": "रकम",
"inventory_td_confirmations": "प्रमाण",
"inventory_td_interest": "ब्याज",
"inventory_td_scriptpubkey": "scriptPubKey",
"inventory_td_txid": "TxID"
},
"Exchange": {
"exchange_your_balance": "आपका शेष",
"exchange_coin_is_disabled": "Coin is disabled.<br>Please enable before trading",
"exchange_switch_pairs": "जोड़ी बदलें",
"exchange_trading_pair": "ट्रेडिंग जोड़ी",
"exchange_speed_mode_settings": "गति मोड सेटिंग्स",
@ -102,6 +136,7 @@
"exchange_enable_auto_repeat_coinmarketcap": "इस व्यापर को ऑटो-दोहराओ + CoinMarketCap कीमतें",
"exchange_itll_cost_you": "यह आपको खर्च आएगा",
"exchange_set_small": "बेचें",
"exchange_itll_get": "इसके आपको मिलेंगे",
"exchange_goal_percent_for_your_portfolio": "आपके पोर्टफोलियो का लक्ष्य प्रतिशत",
"exchange_set_gaol_caps": "लक्ष्य सेट करें",
"exchange_0conf_settings_text_one": "उच्च गति मोड की सुविधा आपको ब्लॉक-चेन पुष्टिकरणों के लिए इंतजार किए बिना सेकंड में ट्रेड करता है।",
@ -115,8 +150,8 @@
"exchange_my_prices": "मेरी कीमतें",
"exchange_auto_bot_list": "ऑटो-बोट सूची",
"exchange_trade_status": "व्यापार स्थिति",
"exchange_th_my_orders_base": "Base",
"exchange_th_my_orders_rel": "Rel",
"exchange_th_my_orders_base": "आधार",
"exchange_th_my_orders_rel": "सापेक्ष",
"exchange_th_my_orders_bid": "बोली",
"exchange_th_my_orders_ask": "मूल्य मांग",
"exchange_th_bot_list_tradebot_info": "व्यापारबोट जानकारी",
@ -137,13 +172,13 @@
"exchange_toastr_order_is_too_small": "आर्डर बहुत छोटा है। कृपया बड़े आर्डर के साथ फिर से प्रयास करें",
"exchange_toastr_order_title": "आर्डर अधिसूचना",
"exchange_portfolio_auto_price": "स्वचल",
"exchange_portfolio_set_auto_buy_margin_percent": "SET AUTO BUY MARGIN %",
"exchange_portfolio_set_auto_buy_margin_percent": "स्वचालित खरीदने का लाभ % सेट करें",
"exchange_portfolio_auto_buy_margin_will_make": "Auto buy margin will make automatic buy orders on lower prices based on the specified percentage.",
"exchange_portfolio_set_auto_buy_price": "SET AUTO BUY PRICE",
"exchange_portfolio_set_auto_buy_price": "स्वचालित खरीदने का मूल्य सेट करें",
"exchange_portfolio_auto_buy_on_fixed_price_will_make": "Auto buy on fixed price will make automatic buy orders on prices based on the specified price.",
"exchange_portfolio_set_auto_sell_margin_percent": "SET AUTO SELL MARGIN %",
"exchange_portfolio_set_auto_sell_margin_percent": "स्वचालित बेचने का लाभ % सेट करें",
"exchange_portfolio_auto_sell_margin_will_make": "Auto sell margin will make automatic sell orders on higher prices based on the specified percentage.",
"exchange_portfolio_set_auto_sell_price": "SET AUTO SELL PRICE",
"exchange_portfolio_set_auto_sell_price": "स्वचालित बेचने का मूल्य सेट करें",
"exchange_portfolio_auto_sell_on_fixed_price_will_make": "Auto sell on fixed price will make automatic sell orders on prices based on the specified price."
},
"Settings": {

View File

@ -783,21 +783,25 @@ $('input[name=trading_manual_buy_sell_options]').change(function() {
$('#trading_pair_coin_autoprice_mode').attr('disabled', 'disabled');
$('#trading_pair_coin_price_max_min').html('%');
if(buying_or_selling == 'buying') {
var default_lang = JSON.parse(sessionStorage.getItem('mm_default_lang'));
if(margin_or_fixed == true){
$('.btn-bot_action').html('SET AUTO BUY MARGIN %');
$('.portfolio_info_text').html("Auto buy margin will make automatic buy orders on lower prices based on the specified percentage.");
$('.btn-bot_action').html(default_lang.Exchange.exchange_portfolio_set_auto_buy_margin_percent);
$('.portfolio_info_text').html(default_lang.Exchange.exchange_portfolio_auto_buy_margin_will_make);
} else {
$('.btn-bot_action').html('SET AUTO BUY PRICE');
$('.portfolio_info_text').html("Auto buy on fixed price will make automatic buy orders on prices based on the specified price.");
var default_lang = JSON.parse(sessionStorage.getItem('mm_default_lang'));
$('.btn-bot_action').html(default_lang.Exchange.exchange_portfolio_set_auto_buy_price);
$('.portfolio_info_text').html(default_lang.Exchange.exchange_portfolio_auto_buy_on_fixed_price_will_make);
}
}
if(buying_or_selling == 'selling') {
if(margin_or_fixed == true){
$('.btn-bot_action').html('SET AUTO SELL MARGIN %');
$('.portfolio_info_text').html("Auto sell margin will make automatic sell orders on higher prices based on the specified percentage.");
var default_lang = JSON.parse(sessionStorage.getItem('mm_default_lang'));
$('.btn-bot_action').html(default_lang.Exchange.exchange_portfolio_set_auto_sell_margin_percent);
$('.portfolio_info_text').html(default_lang.Exchange.exchange_portfolio_auto_sell_margin_will_make);
} else {
$('.btn-bot_action').html('SET AUTO SELL PRICE');
$('.portfolio_info_text').html("Auto sell on fixed price will make automatic sell orders on prices based on the specified price.");
var default_lang = JSON.parse(sessionStorage.getItem('mm_default_lang'));
$('.btn-bot_action').html(default_lang.Exchange.exchange_portfolio_set_auto_sell_price);
$('.portfolio_info_text').html(default_lang.Exchange.exchange_portfolio_auto_sell_on_fixed_price_will_make);
}
}
$('.buy_sell_amount_to').hide();
@ -818,13 +822,15 @@ $('input[name=trading_manual_buy_sell_options]').change(function() {
$('.trading_pair_lable_text_one').html('');
//$('.trading_pair_lable_text_two').html('Sell');
if(buying_or_selling == 'buying') {
$('.btn-bot_action').html('BUY');
$('.relvol_basevol_label').html("It'll cost you")
var default_lang = JSON.parse(sessionStorage.getItem('mm_default_lang'));
$('.btn-bot_action').html(default_lang.Exchange.exchange_btn_buy_caps);
$('.relvol_basevol_label').html(default_lang.Exchange.exchange_itll_cost_you)
$('.btn-bot_action').attr('data-action', 'buy');
}
if(buying_or_selling == 'selling') {
$('.btn-bot_action').html('SELL');
$('.relvol_basevol_label').html("You'll get");
var default_lang = JSON.parse(sessionStorage.getItem('mm_default_lang'));
$('.btn-bot_action').html(default_lang.Exchange.exchange_btn_sell_caps);
$('.relvol_basevol_label').html(default_lang.Exchange.exchange_itll_get);
$('.btn-bot_action').attr('data-action', 'sell');
}
//$('.btn-bot_action').attr('data-action', 'sell');
@ -997,6 +1003,7 @@ function check_coin_balance(chk_coin_data) {
}
if (!chk_coin_output_data.error === false && chk_coin_output_data.error == 'coin is disabled') {
var default_lang = JSON.parse(sessionStorage.getItem('mm_default_lang'));
console.log(chk_coin_output_data.coin);
console.log('coin '+ chk_coin_output_data.coin.coin + ' is disabled');
$('.btn_coindashboard_send[data-coin="' + chk_coin_output_data.coin.coin + '"]').hide();
@ -1006,7 +1013,7 @@ function check_coin_balance(chk_coin_data) {
$('.btn_coindashboard_enable[data-coin="' + chk_coin_output_data.coin.coin + '"]').show();
$('.btn_coindashboard_disable[data-coin="' + chk_coin_output_data.coin.coin + '"]').hide();
$('.coindashboard-balance').html('Coin is disabled.<br>Please enable before trading ')
$('.coindashboard-balance').html(default_lang.Exchange.exchange_coin_is_disabled_enable_before_trading)
$('.coindashboard-balance').css( "font-size", "35px" );
} else {
@ -1209,10 +1216,12 @@ function enable_disable_coin(enable_disable_coin_data) {
}
if (ajax_data.status === 'enable') {
toastr.success(ajax_data.coin+' Enabled','Coin Status');
var default_lang = JSON.parse(sessionStorage.getItem('mm_default_lang'));
toastr.success(ajax_data.coin+default_lang.CoinControl.coincontrol_enabled,default_lang.CoinControl.coincontrol_toastr_title_coin_status);
}
if (ajax_data.status === 'disable') {
toastr.success(ajax_data.coin+' Disabled','Coin Status');
var default_lang = JSON.parse(sessionStorage.getItem('mm_default_lang'));
toastr.success(ajax_data.coin+default_lang.CoinControl.coincontrol_disabled,default_lang.CoinControl.coincontrol_toastr_title_coin_status);
}
//get_coins_list(data.coins);
} else {
@ -1227,12 +1236,14 @@ function enable_disable_coin(enable_disable_coin_data) {
if (!enable_electrum_coin_output_data.error === false) {
//console.log(data.error);
toastr.info(enable_electrum_coin_output_data.error,'Coin Status');
var default_lang = JSON.parse(sessionStorage.getItem('mm_default_lang'));
toastr.info(enable_electrum_coin_output_data.error,default_lang.CoinControl.coincontrol_toastr_title_coin_status);
if (enable_electrum_coin_output_data.error == 'couldnt find coin locally installed') { //{error: "couldnt find coin locally installed", coin: "BTC"}
var default_lang = JSON.parse(sessionStorage.getItem('mm_default_lang'));
bootbox.alert({
onEscape: true,
backdrop: true,
title: "Couldn't find "+enable_disable_coin_data.coin+" locally installed",
title: default_lang.CoinControl.coincontrol_couldnt_find_coin_locally_installed,
message: `<p>It seems you don't have `+enable_disable_coin_data.coin+` wallet installed on your OS. Please check these following points to make sure you have your wallet setup properly:</p>
<ol>
<li>Make sure your wallet is installed properly.</li>
@ -1302,18 +1313,19 @@ function enable_disable_coin(enable_disable_coin_data) {
//console.log(enable_native_coin_output_data.error);
toastr.info(enable_native_coin_output_data.error,'Coin Status');
if (enable_native_coin_output_data.error == 'couldnt find coin locally installed') { //{error: "couldnt find coin locally installed", coin: "BTC"}
var default_lang = JSON.parse(sessionStorage.getItem('mm_default_lang'));
bootbox.alert({
onEscape: true,
backdrop: true,
title: "Couldn't find "+enable_disable_coin_data.coin+" locally installed",
message: `<p>It seems you don't have `+enable_disable_coin_data.coin+` wallet installed on your OS. Please check these following points to make sure you have your wallet setup properly:</p>
title: ` ${return_coin_details(enable_disable_coin_data.coin).name} (${enable_disable_coin_data.coin}) : ` + default_lang.CoinControl.coincontrol_couldnt_find_coin_locally_installed,
message: `<p>${return_coin_details(enable_disable_coin_data.coin).name} (${enable_disable_coin_data.coin}) : ${default_lang.CoinControl.coincontrol_it_seems_you_dont_have_p1}</p>
<ol>
<li>Make sure your wallet is installed properly.</li>
<li>Make sure your wallet is running and synced to network.</li>
<li>Make sure your wallet has proper RPC settings configured in it's configuration file.</li>
<li>If you have all the above covered properly, please logout and then login back and try activating the coin again.</li>
<li>${default_lang.CoinControl.coincontrol_it_seems_you_dont_have_check_points_li_01}</li>
<li>${default_lang.CoinControl.coincontrol_it_seems_you_dont_have_check_points_li_02}</li>
<li>${default_lang.CoinControl.coincontrol_it_seems_you_dont_have_check_points_li_03}</li>
<li>${default_lang.CoinControl.coincontrol_it_seems_you_dont_have_check_points_li_04}</li>
</ol>
<p>If you still having issues activating the your wallet, please get in touch with our support desk.</p>
<p>${default_lang.CoinControl.coincontrol_it_seems_you_dont_have_p2}</p>
<ul>
<li><a href="https://support.supernet.org/" target="_blank">https://support.supernet.org</a></li>
</ul>`,
@ -1425,19 +1437,20 @@ function check_coin_listunspent(coin_listunspent_data) {
console.log(coin_listunspent_output_data);
console.log(coin_listunspent_output_data[0].hasOwnProperty('account'));
var default_lang = JSON.parse(sessionStorage.getItem('mm_default_lang'));
$('.dex_showlist_unspents_tbl tbody').empty();
var show_list_unspents_tbl_tr = '';
show_list_unspents_tbl_tr += '<tr>';
show_list_unspents_tbl_tr += '<th style="width: 30px;">Index</th>';
show_list_unspents_tbl_tr += `<th style="width: 30px;">${default_lang.Inventory.inventory_th_index}</th>`;
if (coin_listunspent_output_data[0].hasOwnProperty('account') == true) {
show_list_unspents_tbl_tr += '<th>Coin Info</th>';
show_list_unspents_tbl_tr += '<th>Value info</th>';
show_list_unspents_tbl_tr += '<th>Transaction Info</th>';
show_list_unspents_tbl_tr += `<th>${default_lang.Inventory.inventory_th_coin_info}</th>`;
show_list_unspents_tbl_tr += `<th>${default_lang.Inventory.inventory_th_value_info}</th>`;
show_list_unspents_tbl_tr += `<th>${default_lang.Inventory.inventory_th_transaction_info}</th>`;
} else {
show_list_unspents_tbl_tr += '<th>Height</th>';
show_list_unspents_tbl_tr += '<th>Tx Hash</th>';
show_list_unspents_tbl_tr += '<th>Tx Pos</th>';
show_list_unspents_tbl_tr += '<th>Value</th>';
show_list_unspents_tbl_tr += `<th>${default_lang.Inventory.inventory_th_height}</th>`;
show_list_unspents_tbl_tr += `<th>${default_lang.Inventory.inventory_th_tx_hash}</th>`;
show_list_unspents_tbl_tr += `<th>${default_lang.Inventory.inventory_th_tx_pos}</th>`;
show_list_unspents_tbl_tr += `<th>${default_lang.Inventory.inventory_th_value}</th>`;
}
show_list_unspents_tbl_tr += '</tr>';
$('.dex_showlist_unspents_tbl tbody').append(show_list_unspents_tbl_tr);
@ -1445,6 +1458,8 @@ function check_coin_listunspent(coin_listunspent_data) {
//console.log(index);
//console.log(val);
var default_lang = JSON.parse(sessionStorage.getItem('mm_default_lang'));
if (val.hasOwnProperty('interest') == true) {
var utxo_interest = val.interest;
} else {
@ -1456,18 +1471,18 @@ function check_coin_listunspent(coin_listunspent_data) {
show_list_unspents_tbl_tr += '<td>' + index + '</td>';
if (coin_listunspent_output_data[0].hasOwnProperty('account') == true) {
show_list_unspents_tbl_tr += `<td>
<b>Coin:</b> `+ coin_listunspent_data.coin +`<br>
<b>Account:</b> `+ val.account +`<br>
<b>Address:</b> `+ val.address +`<br>
<b>${default_lang.Inventory.inventory_td_coin}:</b> `+ coin_listunspent_data.coin +`<br>
<b>${default_lang.Inventory.inventory_td_account}:</b> `+ val.account +`<br>
<b>${default_lang.Inventory.inventory_td_address}:</b> `+ val.address +`<br>
</td>`;
show_list_unspents_tbl_tr += `<td>
<b>Amount:</b> `+ (parseFloat(val.amount)).toFixed(8) + ' ' + coin_listunspent_data.coin +`<br>
<b>Confirmations:</b> `+ val.confirmations +`<br>
<b>Interest:</b> `+ utxo_interest +`<br>
<b>${default_lang.Inventory.inventory_td_amount}:</b> `+ (parseFloat(val.amount)).toFixed(8) + ' ' + coin_listunspent_data.coin +`<br>
<b>${default_lang.Inventory.inventory_td_confirmations}:</b> `+ val.confirmations +`<br>
<b>${default_lang.Inventory.inventory_td_interest}:</b> `+ utxo_interest +`<br>
</td>`;
show_list_unspents_tbl_tr += `<td>
<b>scriptPubKey:</b> `+ val.scriptPubKey +`<br>
<b>TxID:</b> `+ val.txid +`<br>
<b>${default_lang.Inventory.inventory_td_scriptpubkey}:</b> `+ val.scriptPubKey +`<br>
<b>${default_lang.Inventory.inventory_td_txid}:</b> `+ val.txid +`<br>
</td>`;
} else {
show_list_unspents_tbl_tr += `<td>` + val.height + `</td>`;
@ -1947,6 +1962,7 @@ function get_coins_list() {
function addcoins_dialog(){
var default_lang = JSON.parse(sessionStorage.getItem('mm_default_lang'));
var bot_update_bootbox = bootbox.dialog({
onEscape: true,
backdrop: true,
@ -1955,7 +1971,7 @@ function addcoins_dialog(){
<div class="col-sm-12">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><strong>Add Coin</strong></h3>
<h3 class="panel-title"><strong>${default_lang.Portfolio.portfolio_add_coins}</strong></h3>
</div>
<div class="panel-body"> <!-- panel-body -->
@ -1963,7 +1979,7 @@ function addcoins_dialog(){
<select class="selectpicker addcoin_enable_disable_selection" data-live-search="true" data-hide-disabled="true" data-width="100%"></select>
</div>
<div class="col-sm-6">
<input class="toggle_checkbox toggle_font_lg" id="addcoin_toggle_native_electrum" type="checkbox" checked data-toggle="toggle" data-on="Native Mode" data-off="Electrum Mode" data-onstyle="primary" data-offstyle="info" data-width="100%" data-height="44px">
<input class="toggle_checkbox toggle_font_lg" id="addcoin_toggle_native_electrum" type="checkbox" checked data-toggle="toggle" data-on="${default_lang.CoinControl.coincontrol_native_mode}" data-off="${default_lang.CoinControl.coincontrol_electrum_mode}" data-onstyle="primary" data-offstyle="info" data-width="100%" data-height="44px">
</div>
@ -1976,14 +1992,14 @@ function addcoins_dialog(){
buttons: {
cancel: {
label: "Cancel",
label: `${default_lang.Common.btn_cancel}`,
className: 'btn-default',
callback: function(){
}
},
ok: {
label: "Enable",
label: `${default_lang.CoinControl.coincontrol_enable}`,
className: 'btn-success btn-addcoins_enable',
callback: function(){
var addcoin_data = {}
@ -2412,25 +2428,29 @@ $('#trading_pair_coin_autoprice_mode').change(function() {
$('#trading_pair_coin_price_max_min').show();
$('.trading_pair_coin_price').css('border-radius', '0')
//$('.trading_pair_coin_price').attr("placeholder", "Margin e.g. 0.01");
var default_lang = JSON.parse(sessionStorage.getItem('mm_default_lang'));
if(buying_or_selling == 'buying') {
$('.btn-bot_action').html('SET AUTO BUY MARGIN %');
$('.portfolio_info_text').html("Auto buy margin will make automatic buy orders on lower prices based on the specified percentage.");
$('.btn-bot_action').html(default_lang.Exchange.exchange_portfolio_set_auto_buy_margin_percent);
$('.portfolio_info_text').html(default_lang.Exchange.exchange_portfolio_auto_buy_margin_will_make);
}
if(buying_or_selling == 'selling') {
$('.btn-bot_action').html('SET AUTO SELL MARGIN %');
$('.portfolio_info_text').html("Auto sell margin will make automatic sell orders on higher prices based on the specified percentage.");
var default_lang = JSON.parse(sessionStorage.getItem('mm_default_lang'));
$('.btn-bot_action').html(default_lang.Exchange.exchange_portfolio_set_auto_sell_margin_percent);
$('.portfolio_info_text').html(default_lang.Exchange.exchange_portfolio_auto_sell_margin_will_make);
}
} else {
$('#trading_pair_coin_price_max_min').hide();
$('.trading_pair_coin_price').css('border-radius', '4px')
//$('.trading_pair_coin_price').attr("placeholder", "Price e.g. 0.01");
if(buying_or_selling == 'buying') {
$('.btn-bot_action').html('SET AUTO BUY PRICE');
$('.portfolio_info_text').html("Auto buy on fixed price will make automatic buy orders on prices based on the specified price.");
var default_lang = JSON.parse(sessionStorage.getItem('mm_default_lang'));
$('.btn-bot_action').html(default_lang.Exchange.exchange_portfolio_set_auto_buy_price);
$('.portfolio_info_text').html(default_lang.Exchange.exchange_portfolio_auto_buy_on_fixed_price_will_make);
}
if(buying_or_selling == 'selling') {
$('.btn-bot_action').html('SET AUTO SELL PRICE');
$('.portfolio_info_text').html("Auto sell on fixed price will make automatic sell orders on prices based on the specified price.");
var default_lang = JSON.parse(sessionStorage.getItem('mm_default_lang'));
$('.btn-bot_action').html(default_lang.Exchange.exchange_portfolio_set_auto_sell_price);
$('.portfolio_info_text').html(default_lang.Exchange.exchange_portfolio_auto_sell_on_fixed_price_will_make);
}
}
}
@ -2594,13 +2614,15 @@ $('input[name=trading_mode_options]').change(function() {
$('.trading_pair_lable_text_two').html('Buy');
$('.buy_sell_advanced_options_div').hide();
if(buying_or_selling == 'buying') {
$('.btn-bot_action').html('BUY');
$('.relvol_basevol_label').html("It'll cost you");
var default_lang = JSON.parse(sessionStorage.getItem('mm_default_lang'));
$('.btn-bot_action').html(default_lang.Exchange.exchange_btn_buy_caps);
$('.relvol_basevol_label').html(default_lang.Exchange.exchange_itll_cost_you);
$('.btn-bot_action').attr('data-action', 'buy');
}
if(buying_or_selling == 'selling') {
$('.btn-bot_action').html('SELL');
$('.relvol_basevol_label').html("You'll get");
var default_lang = JSON.parse(sessionStorage.getItem('mm_default_lang'));
$('.btn-bot_action').html(default_lang.Exchange.exchange_btn_sell_caps);
$('.relvol_basevol_label').html(default_lang.Exchange.exchange_itll_get);
$('.btn-bot_action').attr('data-action', 'sell');
}
$('.trading_selected_trader_label').hide();
@ -2630,13 +2652,15 @@ $('input[name=trading_mode_options]').change(function() {
$('.buy_sell_advanced_options_div').show();
//$('.trading_pair_lable_text_two').html('Sell');
if(buying_or_selling == 'buying') {
$('.btn-bot_action').html('BUY');
$('.relvol_basevol_label').html("It'll cost you")
var default_lang = JSON.parse(sessionStorage.getItem('mm_default_lang'));
$('.btn-bot_action').html(default_lang.Exchange.exchange_btn_buy_caps);
$('.relvol_basevol_label').html(default_lang.Exchange.exchange_itll_cost_you)
$('.btn-bot_action').attr('data-action', 'buy');
}
if(buying_or_selling == 'selling') {
$('.btn-bot_action').html('SELL');
$('.relvol_basevol_label').html("You'll get");
var default_lang = JSON.parse(sessionStorage.getItem('mm_default_lang'));
$('.btn-bot_action').html(default_lang.Exchange.exchange_btn_sell_caps);
$('.relvol_basevol_label').html(default_lang.Exchange.exchange_itll_get);
$('.btn-bot_action').attr('data-action', 'sell');
}
//$('.btn-bot_action').attr('data-action', 'sell');
@ -2670,21 +2694,25 @@ $('input[name=trading_mode_options]').change(function() {
$('.buy_sell_advanced_options_div').hide();
$('#trading_pair_coin_price_max_min').html('%');
if(buying_or_selling == 'buying') {
var default_lang = JSON.parse(sessionStorage.getItem('mm_default_lang'));
if(margin_or_fixed == true){
$('.btn-bot_action').html('SET AUTO BUY MARGIN %');
$('.portfolio_info_text').html("Auto buy margin will make automatic buy orders on lower prices based on the specified percentage.");
$('.btn-bot_action').html(default_lang.Exchange.exchange_portfolio_set_auto_buy_margin_percent);
$('.portfolio_info_text').html(default_lang.Exchange.exchange_portfolio_auto_buy_margin_will_make);
} else {
$('.btn-bot_action').html('SET AUTO BUY PRICE');
$('.portfolio_info_text').html("Auto buy on fixed price will make automatic buy orders on prices based on the specified price.");
var default_lang = JSON.parse(sessionStorage.getItem('mm_default_lang'));
$('.btn-bot_action').html(default_lang.Exchange.exchange_portfolio_set_auto_buy_price);
$('.portfolio_info_text').html(default_lang.Exchange.exchange_portfolio_auto_buy_on_fixed_price_will_make);
}
}
if(buying_or_selling == 'selling') {
if(margin_or_fixed == true){
$('.btn-bot_action').html('SET AUTO SELL MARGIN %');
$('.portfolio_info_text').html("Auto sell margin will make automatic sell orders on higher prices based on the specified percentage.");
var default_lang = JSON.parse(sessionStorage.getItem('mm_default_lang'));
$('.btn-bot_action').html(default_lang.Exchange.exchange_portfolio_set_auto_sell_margin_percent);
$('.portfolio_info_text').html(default_lang.Exchange.exchange_portfolio_auto_sell_margin_will_make);
} else {
$('.btn-bot_action').html('SET AUTO SELL PRICE');
$('.portfolio_info_text').html("Auto sell on fixed price will make automatic sell orders on prices based on the specified price.");
var default_lang = JSON.parse(sessionStorage.getItem('mm_default_lang'));
$('.btn-bot_action').html(default_lang.Exchange.exchange_portfolio_set_auto_sell_price);
$('.portfolio_info_text').html(default_lang.Exchange.exchange_portfolio_auto_sell_on_fixed_price_will_make);
}
}
$('.btn-bot_action').attr('data-action', 'autoprice');
@ -3370,12 +3398,14 @@ $('input[name=trading_pair_options]').change(function() {
if(bot_or_manual == 'tradeportfolio') {
$('.trading_pair_lable_text_one').html(`${default_lang.Exchange.exchange_portfolio_auto_price}`)
$('#trading_pair_coin_price_max_min').html('%');
var default_lang = JSON.parse(sessionStorage.getItem('mm_default_lang'));
if(margin_or_fixed == true) {
$('.btn-bot_action').html('SET AUTO BUY MARGIN %');
$('.portfolio_info_text').html("Auto buy margin will make automatic buy orders on lower prices based on the specified percentage.");
$('.btn-bot_action').html(default_lang.Exchange.exchange_portfolio_set_auto_buy_margin_percent);
$('.portfolio_info_text').html(default_lang.Exchange.exchange_portfolio_auto_buy_margin_will_make);
} else {
$('.btn-bot_action').html('SET AUTO BUY PRICE');
$('.portfolio_info_text').html("Auto buy on fixed price will make automatic buy orders on prices based on the specified price.");
var default_lang = JSON.parse(sessionStorage.getItem('mm_default_lang'));
$('.btn-bot_action').html(default_lang.Exchange.exchange_portfolio_set_auto_buy_price);
$('.portfolio_info_text').html(default_lang.Exchange.exchange_portfolio_auto_buy_on_fixed_price_will_make);
}
} else {
$('#trading_pair_coin_price_max_min').html(`${default_lang.Exchange.exchange_lbl_one_max}`);
@ -3393,11 +3423,13 @@ $('input[name=trading_pair_options]').change(function() {
$('.trading_pair_lable_text_one').html(`${default_lang.Exchange.exchange_portfolio_auto_price}`)
$('#trading_pair_coin_price_max_min').html('%');
if(margin_or_fixed == true) {
$('.btn-bot_action').html('SET AUTO SELL MARGIN %');
$('.portfolio_info_text').html("Auto sell margin will make automatic sell orders on higher prices based on the specified percentage.");
var default_lang = JSON.parse(sessionStorage.getItem('mm_default_lang'));
$('.btn-bot_action').html(default_lang.Exchange.exchange_portfolio_set_auto_sell_margin_percent);
$('.portfolio_info_text').html(default_lang.Exchange.exchange_portfolio_auto_sell_margin_will_make);
} else {
$('.btn-bot_action').html('SET AUTO SELL PRICE');
$('.portfolio_info_text').html("Auto sell on fixed price will make automatic sell orders on prices based on the specified price.");
var default_lang = JSON.parse(sessionStorage.getItem('mm_default_lang'));
$('.btn-bot_action').html(default_lang.Exchange.exchange_portfolio_set_auto_sell_price);
$('.portfolio_info_text').html(default_lang.Exchange.exchange_portfolio_auto_sell_on_fixed_price_will_make);
}
} else {
$('#trading_pair_coin_price_max_min').html(`${default_lang.Exchange.exchange_lbl_one_min}`);
@ -5845,6 +5877,7 @@ function ZeroConfClaim() {
toastr.error(zconf_claim_data.error, 'InstantDEX Notification');
}
if (zconf_claim_data.result == 'success') {
var default_lang = JSON.parse(sessionStorage.getItem('mm_default_lang'));
var zconf_claim_bootbox = bootbox.dialog({
title: 'InstantDEX Deposit Claim',
message: `<div class="zeroconf_claims_table_div mCustomScrollbar" data-mcs-theme="minimal-dark">
@ -5909,6 +5942,7 @@ $('.btn_zeroconf_deposit_history').click(function(e){
e.preventDefault();
console.log('info_box_for_zeroconf clicked');
var default_lang = JSON.parse(sessionStorage.getItem('mm_default_lang'));
var zconf_deposit_history_bootbox = bootbox.dialog({
title: 'High Speed Mode Deposits History',
message: `<div class="zeroconf_settings_table_div mCustomScrollbar" data-mcs-theme="minimal-dark">