From 678a11f9987307e724e38de014c7b19fe6cdffb3 Mon Sep 17 00:00:00 2001 From: Athou Date: Tue, 31 Jul 2018 15:51:48 +0200 Subject: [PATCH] blur event seems to trigger twice for some reason, make sure we don't fetch the feed twice (#825) --- src/main/app/js/controllers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/app/js/controllers.js b/src/main/app/js/controllers.js index 19c76ab3..2941fed4 100644 --- a/src/main/app/js/controllers.js +++ b/src/main/app/js/controllers.js @@ -43,7 +43,7 @@ module.controller('SubscribeCtrl', ['$scope', '$location', 'FeedService', 'Categ // 'ok', 'loading' or 'failed' $scope.state = 'ok'; $scope.urlChanged = function() { - if ($scope.sub.url) { + if ($scope.sub.url && $scope.state != 'loading') { $scope.state = 'loading'; $scope.sub.title = 'Loading...'; FeedService.fetch({