mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
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'
|
// 'ok', 'loading' or 'failed'
|
||||||
$scope.state = 'ok';
|
$scope.state = 'ok';
|
||||||
$scope.urlChanged = function() {
|
$scope.urlChanged = function() {
|
||||||
if ($scope.sub.url) {
|
if ($scope.sub.url && $scope.state != 'loading') {
|
||||||
$scope.state = 'loading';
|
$scope.state = 'loading';
|
||||||
$scope.sub.title = 'Loading...';
|
$scope.sub.title = 'Loading...';
|
||||||
FeedService.fetch({
|
FeedService.fetch({
|
||||||
|
|||||||
Reference in New Issue
Block a user