import OPML

This commit is contained in:
Jeremie Panzer
2013-03-25 12:24:00 +01:00
parent fa18c80e84
commit f0c4733b76
30 changed files with 307 additions and 24 deletions

View File

@@ -1,6 +1,6 @@
var module = angular.module('commafeed.directives', []);
module.directive('subscribe', function() {
module.directive('subscribe', function(SubscriptionService) {
return {
scope : {},
restrict : 'E',
@@ -13,6 +13,7 @@ module.directive('subscribe', function() {
};
$scope.isOpen = false;
$scope.isOpenImport = false;
$scope.sub = {};
$scope.SubscriptionService = SubscriptionService;
@@ -31,6 +32,19 @@ module.directive('subscribe', function() {
$scope.close();
});
};
$scope.openImport = function() {
$scope.isOpenImport = true;
};
$scope.closeImport = function() {
$scope.isOpenImport = false;
};
$scope.uploadComplete = function(contents, completed) {
SubscriptionService.init();
$scope.closeImport();
};
}
};
});