Skip to content

Commit d62224c

Browse files
committed
Merge
2 parents b519081 + f48ea78 commit d62224c

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

api/widget.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1406,7 +1406,7 @@ ethplorerWidget.Type['tokenHistoryGrouped'] = function(element, options, templat
14061406
title: 'Token operations',
14071407
format: '#,### K',
14081408
viewWindow: {
1409-
max: 1000
1409+
max: 1250
14101410
},
14111411
},
14121412
1: {
@@ -1714,7 +1714,7 @@ ethplorerWidget.Type['tokenPriceHistoryGrouped'] = function(element, options, te
17141714
rangeStart = new Date(strFirstDate);
17151715
var date = stDate.getDate();
17161716
fnDate.setDate(date - this.options.period + 1);
1717-
rangeStart.setDate(date - (this.options.period > 60 ? 60 : this.options.period) + 1);
1717+
rangeStart.setDate(date - (this.options.period > 90 ? 90 : this.options.period) + 1);
17181718

17191719
// prepare data
17201720
var aCountData = {};
@@ -1750,7 +1750,7 @@ ethplorerWidget.Type['tokenPriceHistoryGrouped'] = function(element, options, te
17501750
if(!priceNotFound){
17511751
noPrice = false;
17521752
aData.push(['Day', 'Low', 'Open', 'Close', 'High', {type: 'string', role: 'tooltip', 'p': {'html': true}}, 'Token operations', {role: 'style'}, {type: 'string', role: 'tooltip', 'p': {'html': true}}, 'Volume', {role: 'style'}, {type: 'string', role: 'tooltip', 'p': {'html': true}}]);
1753-
if(this.options.period > 60){
1753+
if(this.options.period > 90){
17541754
fnDate = startPriceDate;
17551755
}
17561756
}

index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
require dirname(__FILE__) . '/service/lib/ethplorer.php';
1919
$es = Ethplorer::db(array());
2020

21-
$codeVersion = isset($aConfig['codeVersion']) ? $aConfig['codeVersion'] : "216";
21+
$codeVersion = isset($aConfig['codeVersion']) ? $aConfig['codeVersion'] : "217";
2222

2323
$error = TRUE;
2424
$header = "";

js/ethplorer.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,14 @@ Ethplorer = {
9494
});
9595
$(document).on('click', '[data-toggle="tab"]', function(){
9696
Ethplorer.Nav.set('tab', $(this).parent().attr('id'));
97+
var activeTab = Ethplorer.getActiveTab();
98+
if(activeTab){
99+
if(activeTab != 'transfers'){
100+
$('#showTxChecks').hide();
101+
}else{
102+
$('#showTxChecks').show();
103+
}
104+
}
97105
if(Ethplorer.data) Ethplorer.showFilter(Ethplorer.data);
98106
});
99107
$('.download').click(function(){
@@ -983,6 +991,8 @@ Ethplorer = {
983991

984992
if(data.contract && data.contract.txsCount && (data.contract.txsCount > data.token.txsCount)){
985993
data.token.txsCount = data.contract.txsCount;
994+
}
995+
if(data.token && data.token.txsCount){
986996
if(data.token.txsCount > Ethplorer.maxListSize) Ethplorer.maxListSize = data.token.txsCount;
987997
}
988998

@@ -1162,6 +1172,11 @@ Ethplorer = {
11621172
showFilter: function(data){
11631173
var activeTab = Ethplorer.getActiveTab();
11641174
if(activeTab && data.pager && data.pager[activeTab]){
1175+
if(activeTab != 'transfers'){
1176+
$('#showTxChecks').hide();
1177+
}else{
1178+
$('#showTxChecks').show();
1179+
}
11651180
if(data.pager[activeTab].records > 100000 || Ethplorer.maxListSize > 100000){
11661181
$('#filter_list').hide();
11671182
}else{
@@ -1252,7 +1267,7 @@ Ethplorer = {
12521267
var tableId = data.token ? 'address-token-transfers' : 'address-transfers';
12531268
$('#' + tableId).find('.table').empty();
12541269
if(Ethplorer.showTx && !$('#showTxEth').length){
1255-
var showTxChecks = '<span style="color: white;vertical-align:middle;"><label for="showTxEth">ETH <sup class="diff-down">new</sup></label></span> <input onClick="Ethplorer.showTransfers(this, \'eth\');" id="showTxEth" type="checkbox" ' + ((Ethplorer.showTx == 'all' || Ethplorer.showTx == 'eth') ? 'checked="checked"' : '') + ' name="showTxEth" value="1" style="vertical-align: text-bottom;margin-right:5px;">' + ' <span style="color: white;vertical-align:middle;"><label for="showTxTokens">Tokens <sup class="diff-down">new</sup></label></span> <input onClick="Ethplorer.showTransfers(this, \'tokens\');" id="showTxTokens" type="checkbox" ' + ((Ethplorer.showTx == 'all' || Ethplorer.showTx == 'tokens') ? 'checked="checked"' : '') + ' name="showTxTokens" value="1" style="vertical-align: text-bottom;margin-right:5px;">';
1270+
var showTxChecks = '<span id="showTxChecks"><span style="color: white;vertical-align:middle;"><label for="showTxEth">ETH <sup class="diff-down">new</sup></label></span> <input onClick="Ethplorer.showTransfers(this, \'eth\');" id="showTxEth" type="checkbox" ' + ((Ethplorer.showTx == 'all' || Ethplorer.showTx == 'eth') ? 'checked="checked"' : '') + ' name="showTxEth" value="1" style="vertical-align: text-bottom;margin-right:5px;">' + ' <span style="color: white;vertical-align:middle;"><label for="showTxTokens">Tokens <sup class="diff-down">new</sup></label></span> <input onClick="Ethplorer.showTransfers(this, \'tokens\');" id="showTxTokens" type="checkbox" ' + ((Ethplorer.showTx == 'all' || Ethplorer.showTx == 'tokens') ? 'checked="checked"' : '') + ' name="showTxTokens" value="1" style="vertical-align: text-bottom;margin-right:5px;"></span>';
12561271

12571272
if(!data.token){
12581273
$('.filter-form').prepend('<style>@media screen and (max-width: 501px) {.filter-box.out-of-tabs{height: 35px !important;}}</style>' + showTxChecks);

0 commit comments

Comments
 (0)