From 28da1b6da4b91808adb20a5f398d4755e54fa533 Mon Sep 17 00:00:00 2001 From: luchenqun Date: Mon, 20 Mar 2017 13:25:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E5=B0=8Fbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/scripts/controllers/search-controller.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/scripts/controllers/search-controller.js b/public/scripts/controllers/search-controller.js index 514db59..39e40cc 100644 --- a/public/scripts/controllers/search-controller.js +++ b/public/scripts/controllers/search-controller.js @@ -277,6 +277,7 @@ app.controller('searchCtr', ['$scope', '$state', '$stateParams', '$filter', '$wi function transition() { $timeout(function() { + timeagoInstance.cancel(); timeagoInstance.render(document.querySelectorAll('.need_to_be_rendered'), 'zh_CN'); }, 100) var className = 'js-table-search';