From d45ce51678df7b5dcfa29d02d59962ccdbf95771 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Thu, 18 Sep 2014 14:26:02 +0200 Subject: fix opml import --- js/directive/NewsTimeout.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'js/directive/NewsTimeout.js') diff --git a/js/directive/NewsTimeout.js b/js/directive/NewsTimeout.js index e54a32793..0a224778f 100644 --- a/js/directive/NewsTimeout.js +++ b/js/directive/NewsTimeout.js @@ -29,6 +29,9 @@ app.directive('newsTimeout', function ($timeout, $rootScope) { // also delete the entry if undo is ignored and the url // is changed $rootScope.$on('$locationChangeStart', function () { + // $locationChangeStart triggers twice because of the trailing + // slash on the link which is kinda a hack to reload the route + // if you click on the link when the route is the same if (!destroyed) { destroyed = true; element.remove(); -- cgit v1.2.3