searching from date
This commit is contained in:
parent
0ecb432006
commit
276c3fa9ab
1 changed files with 9 additions and 1 deletions
|
|
@ -922,11 +922,19 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
||||||
return lodash.includes(tx.amountStr, search) ||
|
return lodash.includes(tx.amountStr, search) ||
|
||||||
lodash.includes(tx.message, search) ||
|
lodash.includes(tx.message, search) ||
|
||||||
lodash.includes(self.addressbook[tx.addressTo], search) ||
|
lodash.includes(self.addressbook[tx.addressTo], search) ||
|
||||||
lodash.includes(tx.addressTo, search);
|
lodash.includes(tx.addressTo, search) ||
|
||||||
|
lodash.isEqual(formatDate(new Date(tx.time * 1000)), search);
|
||||||
});
|
});
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function formatDate(date) {
|
||||||
|
var day = ('0' + date.getDate()).slice(-2).toString();
|
||||||
|
var month = ('0' + (date.getMonth() + 1)).slice(-2).toString();
|
||||||
|
var year = date.getFullYear();
|
||||||
|
return [month, day, year].join('/');
|
||||||
|
};
|
||||||
|
|
||||||
self.getTxsFromServer = function(client, skip, endingTxid, limit, cb) {
|
self.getTxsFromServer = function(client, skip, endingTxid, limit, cb) {
|
||||||
var res = [];
|
var res = [];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue