分类页面,切换显示模式,重新获取书签

This commit is contained in:
luchenqun 2017-06-11 17:28:59 +08:00
parent e8792de656
commit 50c5ececa8
1 changed files with 1 additions and 4 deletions

View File

@ -228,10 +228,7 @@ app.controller('tagsCtr', ['$scope', '$filter', '$window', '$stateParams', '$tim
$scope.toggleShowMode = function(showMode) { $scope.toggleShowMode = function(showMode) {
$scope.showMode = showMode; $scope.showMode = showMode;
$timeout(function() { $scope.getBookmarks($scope.currentTagId, 1);
timeagoInstance.cancel();
timeagoInstance.render(document.querySelectorAll('.need_to_be_rendered'), 'zh_CN');
}, 100)
} }
$scope.editTag = function(tag) { $scope.editTag = function(tag) {