forked from Archives/Athou_commafeed
better label handling
This commit is contained in:
@@ -33,8 +33,9 @@ module.controller('SubscribeCtrl', function($scope, SubscriptionService) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
$scope.urlChanged = function() {
|
$scope.urlChanged = function() {
|
||||||
if ($scope.sub.url && !$scope.sub.title) {
|
var msg = 'Loading...';
|
||||||
$scope.sub.title = 'Loading...';
|
if ($scope.sub.url && (!$scope.sub.title || $scope.sub.title == msg)) {
|
||||||
|
$scope.sub.title = msg;
|
||||||
SubscriptionService.fetch({
|
SubscriptionService.fetch({
|
||||||
url : $scope.sub.url
|
url : $scope.sub.url
|
||||||
}, function(data) {
|
}, function(data) {
|
||||||
|
|||||||
Reference in New Issue
Block a user