forked from Archives/Athou_commafeed
import OPML
This commit is contained in:
@@ -44,6 +44,9 @@ module.controller('CategoryTreeCtrl', function($scope, $routeParams, $location,
|
||||
|
||||
$scope.formatFeedName = function(feed) {
|
||||
var label = feed.name;
|
||||
if (feed.message) {
|
||||
label = "!!! " + label;
|
||||
}
|
||||
if (feed.unread > 0) {
|
||||
label = label + " (" + feed.unread + ")";
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
};
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
var app = angular
|
||||
.module('commafeed', [ 'ui', 'ui.bootstrap', 'commafeed.directives',
|
||||
'commafeed.controllers', 'commafeed.services', 'ngSanitize' ]);
|
||||
var app = angular.module('commafeed', [ 'ui', 'ui.bootstrap',
|
||||
'commafeed.directives', 'commafeed.controllers', 'commafeed.services',
|
||||
'ngSanitize', 'ngUpload' ]);
|
||||
|
||||
app.config([ '$routeProvider', function($routeProvider) {
|
||||
$routeProvider.when('/feeds/view/:_type/:_id', {
|
||||
|
||||
Reference in New Issue
Block a user