forked from Archives/Athou_commafeed
blur event seems to trigger twice for some reason, make sure we don't fetch the feed twice (#825)
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user