Browse Source

cleanup IguanaAddcoin.js #3

master
pbca26 8 years ago
parent
commit
2698989807
  1. 14
      assets/scripts/dashboard.js
  2. 8
      assets/scripts/dashboard/DashboardEDEX.js
  3. 77
      assets/scripts/iguana_api/IguanaAddcoin.js
  4. 28
      assets/scripts/login.js

14
assets/scripts/dashboard.js

@ -6,19 +6,7 @@ var RunTotalFiatValue = '',
edexcoin_send_form_validator = ''; edexcoin_send_form_validator = '';
var Dashboard = function() { var Dashboard = function() {
toastr.options = { toastr.options = toastrConfig;
'closeButton': true,
'debug': false,
'positionClass': 'toast-bottom-right',
'showDuration': '15000',
'hideDuration': '1000',
'timeOut': '15000',
'extendedTimeOut': '1000',
'showEasing': 'swing',
'hideEasing': 'linear',
'showMethod': 'fadeIn',
'hideMethod': 'fadeOut'
}
var handle_edex_wallet = function() { var handle_edex_wallet = function() {
$('#btn_edexcoin_wallet_dashboard').click(function() { $('#btn_edexcoin_wallet_dashboard').click(function() {

8
assets/scripts/dashboard/DashboardEDEX.js

@ -805,11 +805,11 @@ function edexCoinBtnAction() {
alertify.success(_lang[defaultLang].DASHBOARD.ADDR_COPIED + '.'); alertify.success(_lang[defaultLang].DASHBOARD.ADDR_COPIED + '.');
}); });
var clipboard = new Clipboard('.clipboard-edexaddr'); //var clipboard = new Clipboard('.clipboard-edexaddr');
clipboard.destroy(); //clipboard.destroy();
var clipboard = null; //var clipboard = null;
if ( clipboard != null ) { if (clipboard && clipboard != null ) {
clipboard.destroy(); clipboard.destroy();
} }

77
assets/scripts/iguana_api/IguanaAddcoin.js

@ -1236,35 +1236,54 @@ function Iguana_addcoin(addcoin_data) {
'seedipaddr': '78.47.196.146' 'seedipaddr': '78.47.196.146'
}; };
AddCoinDataPayload.USDVar = _payloadVar; const USDDiff = {
AddCoinDataPayload.USDVar.netmagic = '2d8e7803'; 'netmagic': '2d8e7803',
AddCoinDataPayload.USDVar.p2p = 13966; 'p2p': 13966,
AddCoinDataPayload.USDVar.rpc = AddCoinDataPayload.USDVar.p2p + 1; 'rpc': this.p2p + 1
};
AddCoinDataPayload.CHFVar = _payloadVar; AddCoinDataPayload.USDVar = Object.assign(_payloadVar, USDDiff);
AddCoinDataPayload.CHFVar.netmagic = '59fbeb5c';
AddCoinDataPayload.CHFVar.p2p = 15311; const CHFDiff = {
AddCoinDataPayload.CHFVar.rpc = AddCoinDataPayload.CHFVar.p2p + 1; 'netmagic': '59fbeb5c',
'p2p': 15311,
AddCoinDataPayload.CADVar = _payloadVar; 'rpc': this.p2p + 1
AddCoinDataPayload.CADVar.netmagic = '3c212763'; };
AddCoinDataPayload.CADVar.p2p = 8719; AddCoinDataPayload.CHFVar = Object.assign(_payloadVar, CHFDiff);
AddCoinDataPayload.CADVar.rpc = AddCoinDataPayload.CADVar.p2p + 1;
const CADDiff = {
AddCoinDataPayload.BRLVar = _payloadVar; 'netmagic': '3c212763',
AddCoinDataPayload.BRLVar.netmagic = 'ab82d10d'; 'p2p': 8719,
AddCoinDataPayload.BRLVar.p2p = 9913; 'rpc': this.p2p + 1
AddCoinDataPayload.BRLVar.rpc = AddCoinDataPayload.BRLVar.p2p + 1; };
AddCoinDataPayload.CADVar = Object.assign(_payloadVar, CADDiff);
AddCoinDataPayload.BGNVar = _payloadVar;
AddCoinDataPayload.BGNVar.netmagic = '93056ad4'; const BRLDiff = {
AddCoinDataPayload.BGNVar.p2p = 9109; 'netmagic': 'ab82d10d',
AddCoinDataPayload.BGNVar.rpc = AddCoinDataPayload.BGNVar.p2p + 1; 'p2p': 9913,
'rpc': this.p2p + 1
AddCoinDataPayload.AUDVar = _payloadVar; };
AddCoinDataPayload.AUDVar.netmagic = '07220d4e'; AddCoinDataPayload.BRLVar = Object.assign(_payloadVar, BRLDiff);
AddCoinDataPayload.AUDVar.p2p = 9109;
AddCoinDataPayload.AUDVar.rpc = AddCoinDataPayload.AUDVar.p2p + 1; const BGNDiff = {
'netmagic': '93056ad4',
'p2p': 9109,
'rpc': this.p2p + 1
};
AddCoinDataPayload.BGNVar = Object.assign(_payloadVar, BGNDiff);
const AUDDiff = {
'netmagic': '07220d4e',
'p2p': 8044,
'rpc': this.p2p + 1
};
AddCoinDataPayload.AUDVar = Object.assign(_payloadVar, AUDDiff);
const PLNDiff = {
'netmagic': '46ab3c28',
'p2p': 13492,
'rpc': this.p2p + 1
};
AddCoinDataPayload.AUDVar = Object.assign(_payloadVar, PLNDiff);
AddCoinDataPayload.PLNVar = _payloadVar; AddCoinDataPayload.PLNVar = _payloadVar;
AddCoinDataPayload.PLNVar.netmagic = '46ab3c28'; AddCoinDataPayload.PLNVar.netmagic = '46ab3c28';

28
assets/scripts/login.js

@ -1,17 +1,19 @@
const toastrConfig = {
'closeButton': true,
'debug': false,
'positionClass': 'toast-bottom-right',
'showDuration': '5000',
'hideDuration': '1000',
'timeOut': '5000',
'extendedTimeOut': '1000',
'showEasing': 'swing',
'hideEasing': 'linear',
'showMethod': 'fadeIn',
'hideMethod': 'fadeOut'
}
var Login = function() { var Login = function() {
toastr.options = { toastr.options = toastrConfig;
'closeButton': true,
'debug': false,
'positionClass': 'toast-bottom-right',
'showDuration': '5000',
'hideDuration': '1000',
'timeOut': '5000',
'extendedTimeOut': '1000',
'showEasing': 'swing',
'hideEasing': 'linear',
'showMethod': 'fadeIn',
'hideMethod': 'fadeOut'
}
var handleLogin = function() { var handleLogin = function() {
$('.login-form').validate({ $('.login-form').validate({

Loading…
Cancel
Save