blur event seems to trigger twice for some reason, make sure we don't fetch the feed twice (#825)

This commit is contained in:
Athou
2018-07-31 15:51:48 +02:00
parent e9ef98716f
commit 678a11f998

View File

@@ -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({