还是去掉数据点击之后,在表格里面实时更新

This commit is contained in:
luchenqun 2017-03-21 17:21:18 +08:00
parent a7b8d9d31d
commit af66015d0e
2 changed files with 12 additions and 12 deletions

View File

@ -64,17 +64,17 @@ app.controller('bookmarksCtr', ['$scope', '$state', '$stateParams', '$filter', '
})
}
if ($scope.showStyle == 'table') {
$scope.changeOrder($scope.order.indexOf(true));
}
if ($scope.showStyle == 'costomTag') {
$scope.costomTags.forEach((tag) => {
if (tag.clicked) {
$scope.updateCostomTagBookmarks(tag.index)
}
})
}
// if ($scope.showStyle == 'table') {
// $scope.changeOrder($scope.order.indexOf(true));
// }
//
// if ($scope.showStyle == 'costomTag') {
// $scope.costomTags.forEach((tag) => {
// if (tag.clicked) {
// $scope.updateCostomTagBookmarks(tag.index)
// }
// })
// }
$timeout(function() {
timeagoInstance.cancel();

View File

@ -128,7 +128,7 @@ app.controller('tagsCtr', ['$scope', '$filter', '$window', '$stateParams', '$tim
bookmark.last_click = $filter("date")(new Date(), "yyyy-MM-dd HH:mm:ss");
}
})
$scope.changeOrder($scope.order.indexOf(true));
// $scope.changeOrder($scope.order.indexOf(true));
$timeout(function() {
timeagoInstance.cancel();
timeagoInstance.render(document.querySelectorAll('.need_to_be_rendered'), 'zh_CN');