summaryrefslogtreecommitdiffstats
path: root/js/directive
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-09-18 14:26:02 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-09-18 14:26:02 +0200
commitd45ce51678df7b5dcfa29d02d59962ccdbf95771 (patch)
treeab740d03ca9dc190e8286db86eddb6279435b7d8 /js/directive
parent69ebc02cca77e8dfa4ea2712e914093d5140a5d4 (diff)
fix opml import
Diffstat (limited to 'js/directive')
-rw-r--r--js/directive/NewsTimeout.js3
1 files changed, 3 insertions, 0 deletions
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();