From af66015d0e8ae069f0307c5a4604a85987ddc565 Mon Sep 17 00:00:00 2001 From: luchenqun Date: Tue, 21 Mar 2017 17:21:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=98=E6=98=AF=E5=8E=BB=E6=8E=89=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=82=B9=E5=87=BB=E4=B9=8B=E5=90=8E=EF=BC=8C=E5=9C=A8?= =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E9=87=8C=E9=9D=A2=E5=AE=9E=E6=97=B6=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controllers/bookmarks-controller.js | 22 +++++++++---------- public/scripts/controllers/tags-controller.js | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/public/scripts/controllers/bookmarks-controller.js b/public/scripts/controllers/bookmarks-controller.js index 92127ab..937a91d 100644 --- a/public/scripts/controllers/bookmarks-controller.js +++ b/public/scripts/controllers/bookmarks-controller.js @@ -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(); diff --git a/public/scripts/controllers/tags-controller.js b/public/scripts/controllers/tags-controller.js index 020aac8..6713397 100644 --- a/public/scripts/controllers/tags-controller.js +++ b/public/scripts/controllers/tags-controller.js @@ -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');