Skip to content

Commit

Permalink
fixed reverse transaction listings
Browse files Browse the repository at this point in the history
  • Loading branch information
BurstProject committed Sep 10, 2014
1 parent 103711c commit a83c8ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions html/ui/js/nrs.messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var NRS = (function(NRS, $, undefined) {
"subtype": 0
}, function(response) {
if (response.transactionIds && response.transactionIds.length) {
var transactionIds = response.transactionIds.reverse().slice(0, 100);
var transactionIds = response.transactionIds.slice(0, 100);
var nrTransactions = transactionIds.length;

NRS.messages = {};
Expand Down Expand Up @@ -503,4 +503,4 @@ var NRS = (function(NRS, $, undefined) {
}

return NRS;
}(NRS || {}, jQuery));
}(NRS || {}, jQuery));
6 changes: 3 additions & 3 deletions html/ui/js/nrs.transactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var NRS = (function(NRS, $, undefined) {
"timestamp": 0
}, function(response) {
if (response.transactionIds && response.transactionIds.length) {
var transactionIds = response.transactionIds.reverse().slice(0, 10);
var transactionIds = response.transactionIds.slice(0, 10);
var nrTransactions = 0;
var transactions = [];

Expand Down Expand Up @@ -87,7 +87,7 @@ var NRS = (function(NRS, $, undefined) {
"timestamp": NRS.lastTransactionsTimestamp
}, function(response) {
if (response.transactionIds && response.transactionIds.length) {
var transactionIds = response.transactionIds.reverse().slice(0, 10);
var transactionIds = response.transactionIds.slice(0, 10);

if (transactionIds.toString() == NRS.lastTransactions) {
NRS.getUnconfirmedTransactions(function(unconfirmedTransactions) {
Expand Down Expand Up @@ -380,7 +380,7 @@ var NRS = (function(NRS, $, undefined) {
var transactions = {};
var nr_transactions = 0;

var transactionIds = response.transactionIds.reverse().slice(0, 100);
var transactionIds = response.transactionIds.slice(0, 100);

for (var i = 0; i < transactionIds.length; i++) {
NRS.sendRequest("getTransaction+", {
Expand Down

0 comments on commit a83c8ea

Please sign in to comment.