修复增加书签之后,在分类页面不显示书签的BUG
This commit is contained in:
parent
845fc73798
commit
2047eb8433
|
|
@ -102,7 +102,9 @@ app.controller('tagsCtr', ['$scope', '$filter', '$window', '$stateParams', '$tim
|
|||
currentPage: currentPage,
|
||||
perPageItems: perPageItems,
|
||||
};
|
||||
$($scope.showMode == 'item' ? '.js-tag-costomTag' : '.js-tags-table').transition('hide');
|
||||
if (!forbidTransition) {
|
||||
$($scope.showMode == 'item' ? '.js-tag-costomTag' : '.js-tags-table').transition('hide');
|
||||
}
|
||||
bookmarkService.getBookmarksByTag(params)
|
||||
.then((data) => {
|
||||
$scope.bookmarkData = data;
|
||||
|
|
@ -519,8 +521,8 @@ app.controller('tagsCtr', ['$scope', '$filter', '$window', '$stateParams', '$tim
|
|||
if (!find) {
|
||||
if (data.tags.map((tag) => tag.id).indexOf($scope.currentTagId) >= 0) {
|
||||
if (!$scope.editMode) {
|
||||
$scope.getBookmarks($scope.currentTagId, $scope.currentPage);
|
||||
forbidTransition = true;
|
||||
$scope.getBookmarks($scope.currentTagId, $scope.currentPage);
|
||||
}
|
||||
addBookmarkId = data.id;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<div class="ui cancel button" ng-click="cancel()">取消</div>
|
||||
<div class="ui green button" ng-click="ok()">发送</div>
|
||||
<div class="ui cancel button" ng-click="cancel()" style="cursor:default;">取消</div>
|
||||
<div class="ui green button" ng-click="ok()" style="cursor:default;">发送</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue