From c7e09e6cf47b3a10966a66f30fa9ca2945c4491b Mon Sep 17 00:00:00 2001 From: luchenqun Date: Sun, 20 Nov 2016 22:48:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E5=90=8E=E7=9A=84=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/scripts/controllers/search-controller.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/public/scripts/controllers/search-controller.js b/public/scripts/controllers/search-controller.js index 78fd3f2..0fb3843 100644 --- a/public/scripts/controllers/search-controller.js +++ b/public/scripts/controllers/search-controller.js @@ -46,6 +46,15 @@ app.controller('searchCtr', ['$scope', '$state', '$stateParams', '$filter', '$wi } + $scope.jumpToUrl = function(url, id) { + if (!$scope.edit) { + $window.open(url, '_blank'); + bookmarkService.clickBookmark({ + id: id + }); + } + } + $scope.delBookmark = function(bookmarkId) { var params = { id: bookmarkId