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 = '';
var Dashboard = function() {
toastr.options = {
'closeButton': true,
'debug': false,
'positionClass': 'toast-bottom-right',
'showDuration': '15000',
'hideDuration': '1000',
'timeOut': '15000',
'extendedTimeOut': '1000',
'showEasing': 'swing',
'hideEasing': 'linear',
'showMethod': 'fadeIn',
'hideMethod': 'fadeOut'
}
toastr.options = toastrConfig;
var handle_edex_wallet = 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 + '.');
});
var clipboard = new Clipboard('.clipboard-edexaddr');
clipboard.destroy();
//var clipboard = new Clipboard('.clipboard-edexaddr');
//clipboard.destroy();
var clipboard = null;
if ( clipboard != null ) {
//var clipboard = null;
if (clipboard && clipboard != null ) {
clipboard.destroy();
}

77
assets/scripts/iguana_api/IguanaAddcoin.js

@ -1236,35 +1236,54 @@ function Iguana_addcoin(addcoin_data) {
'seedipaddr': '78.47.196.146'
};
AddCoinDataPayload.USDVar = _payloadVar;
AddCoinDataPayload.USDVar.netmagic = '2d8e7803';
AddCoinDataPayload.USDVar.p2p = 13966;
AddCoinDataPayload.USDVar.rpc = AddCoinDataPayload.USDVar.p2p + 1;
AddCoinDataPayload.CHFVar = _payloadVar;
AddCoinDataPayload.CHFVar.netmagic = '59fbeb5c';
AddCoinDataPayload.CHFVar.p2p = 15311;
AddCoinDataPayload.CHFVar.rpc = AddCoinDataPayload.CHFVar.p2p + 1;
AddCoinDataPayload.CADVar = _payloadVar;
AddCoinDataPayload.CADVar.netmagic = '3c212763';
AddCoinDataPayload.CADVar.p2p = 8719;
AddCoinDataPayload.CADVar.rpc = AddCoinDataPayload.CADVar.p2p + 1;
AddCoinDataPayload.BRLVar = _payloadVar;
AddCoinDataPayload.BRLVar.netmagic = 'ab82d10d';
AddCoinDataPayload.BRLVar.p2p = 9913;
AddCoinDataPayload.BRLVar.rpc = AddCoinDataPayload.BRLVar.p2p + 1;
AddCoinDataPayload.BGNVar = _payloadVar;
AddCoinDataPayload.BGNVar.netmagic = '93056ad4';
AddCoinDataPayload.BGNVar.p2p = 9109;
AddCoinDataPayload.BGNVar.rpc = AddCoinDataPayload.BGNVar.p2p + 1;
AddCoinDataPayload.AUDVar = _payloadVar;
AddCoinDataPayload.AUDVar.netmagic = '07220d4e';
AddCoinDataPayload.AUDVar.p2p = 9109;
AddCoinDataPayload.AUDVar.rpc = AddCoinDataPayload.AUDVar.p2p + 1;
const USDDiff = {
'netmagic': '2d8e7803',
'p2p': 13966,
'rpc': this.p2p + 1
};
AddCoinDataPayload.USDVar = Object.assign(_payloadVar, USDDiff);
const CHFDiff = {
'netmagic': '59fbeb5c',
'p2p': 15311,
'rpc': this.p2p + 1
};
AddCoinDataPayload.CHFVar = Object.assign(_payloadVar, CHFDiff);
const CADDiff = {
'netmagic': '3c212763',
'p2p': 8719,
'rpc': this.p2p + 1
};
AddCoinDataPayload.CADVar = Object.assign(_payloadVar, CADDiff);
const BRLDiff = {
'netmagic': 'ab82d10d',
'p2p': 9913,
'rpc': this.p2p + 1
};
AddCoinDataPayload.BRLVar = Object.assign(_payloadVar, BRLDiff);
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.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() {
toastr.options = {
'closeButton': true,
'debug': false,
'positionClass': 'toast-bottom-right',
'showDuration': '5000',
'hideDuration': '1000',
'timeOut': '5000',
'extendedTimeOut': '1000',
'showEasing': 'swing',
'hideEasing': 'linear',
'showMethod': 'fadeIn',
'hideMethod': 'fadeOut'
}
toastr.options = toastrConfig;
var handleLogin = function() {
$('.login-form').validate({

Loading…
Cancel
Save