diff --git a/public/scripts/controllers/tags-controller.js b/public/scripts/controllers/tags-controller.js index 6273c43..cc6a454 100644 --- a/public/scripts/controllers/tags-controller.js +++ b/public/scripts/controllers/tags-controller.js @@ -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; } diff --git a/public/views/edit.html b/public/views/edit.html index e256797..432d397 100644 --- a/public/views/edit.html +++ b/public/views/edit.html @@ -54,7 +54,7 @@