feat(trances): system trances log pagination

This commit is contained in:
OldHawk
2017-07-20 10:22:49 +08:00
parent dd34e37544
commit 68f80f225d
5 changed files with 84 additions and 43 deletions

View File

@@ -30,7 +30,6 @@
*/
vm.figureOutItemsToDisplay = function (callback) {
vm.doSearch(vm.currentPage, function (items) {
console.log(items);
vm.filterLength = items.total;
vm.pagedItems = items.rows;
@@ -67,8 +66,6 @@
limit: vm.itemsPerPage
});
console.log(fs);
fs.$search(function (res) {
vm.isLoading = false;
callback(res);
@@ -101,7 +98,7 @@
angular.forEach(keysA, function (k) {
regex = new RegExp(k, 'ig');
t = t.replace(regex, function (match) {
return '<span class="keys">' + match + '</span>'
return '<span class="keys">' + match + '</span>';
});
});