summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-09-03 17:15:59 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-09-03 17:15:59 +0200
commit6dfbc778ab3070ac8d0e5dec9095e150342fe78f (patch)
tree478eafb1050a06d2f87256833522800c85d20d2d /js
parent9c6350b394982c645fac74b9ce70a3e953137050 (diff)
add hint in readme to make data directory readable
Diffstat (limited to 'js')
-rw-r--r--js/public/app.js344
1 files changed, 34 insertions, 310 deletions
diff --git a/js/public/app.js b/js/public/app.js
index b7c4b1aa8..79c08094c 100644
--- a/js/public/app.js
+++ b/js/public/app.js
@@ -1,4 +1,3 @@
-(function(angular, $, moment, undefined){
/**
* ownCloud News App - v0.0.1
@@ -11,7 +10,7 @@
*/
-// Generated by CoffeeScript 1.6.2
+// Generated by CoffeeScript 1.6.3
/*
ownCloud - News
@@ -37,7 +36,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
(function() {
angular.module('News', ['OC', 'ui']).config(function($provide) {
var config;
-
return $provide.value('Config', config = {
markReadTimeout: 500,
scrollTimeout: 500,
@@ -68,7 +66,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
}).call(this);
-// Generated by CoffeeScript 1.6.2
+// Generated by CoffeeScript 1.6.3
/*
ownCloud - News
@@ -94,7 +92,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
(function() {
angular.module('News').directive('newsAudio', function() {
var directive;
-
return directive = {
restrict: 'E',
scope: {
@@ -105,7 +102,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
template: '' + '<audio controls="controls" preload="none" ng-hide="cantPlay()">' + '<source src="{{ src }}">' + '</audio>' + '<a href="{{ src }}" class="button" ng-show="cantPlay()" ' + 'ng-transclude></a>',
link: function(scope, elm, attrs) {
var cantPlay, source;
-
source = elm.children().children('source')[0];
cantPlay = false;
source.addEventListener('error', function() {
@@ -122,7 +118,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
}).call(this);
-// Generated by CoffeeScript 1.6.2
+// Generated by CoffeeScript 1.6.3
/*
ownCloud - News
@@ -150,7 +146,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
'$rootScope', function($rootScope) {
return function(scope, elm, attr) {
var $elem, details;
-
$elem = $(elm);
details = {
accept: '.feed',
@@ -158,7 +153,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
greedy: true,
drop: function(event, ui) {
var data;
-
$('.drag-and-drop').removeClass('drag-and-drop');
data = {
folderId: parseInt($elem.data('id'), 10),
@@ -175,101 +169,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
}).call(this);
-// Generated by CoffeeScript 1.6.2
-/*
-
-ownCloud - News
-
-@author Alessandro Cosentino
-@copyright 2013 Alessandro Cosentino cosenal@gmail.com
-
-This library is free software; you can redistribute it and/or
-modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
-License as published by the Free Software Foundation; either
-version 3 of the License, or any later version.
-
-This library is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU AFFERO GENERAL PUBLIC LICENSE for more details.
-
-You should have received a copy of the GNU Affero General Public
-License along with this library. If not, see <http://www.gnu.org/licenses/>.
-*/
-
-
-(function() {
- angular.module('News').directive('globalShortcuts', [
- '$window', function($window) {
- return function(scope, elm, attr) {
- var jumpTo;
-
- jumpTo = function($scrollArea, $item) {
- var position;
-
- position = $item.offset().top - $scrollArea.offset().top + $scrollArea.scrollTop();
- return $scrollArea.scrollTop(position);
- };
- return $($window.document).keydown(function(e) {
- var focused;
-
- focused = $(':focus');
- if (!(focused.is('input') || focused.is('select') || focused.is('textarea') || focused.is('checkbox') || focused.is('button'))) {
- if (e.keyCode === 191) {
- return jumpToNextItem(scrollArea);
- }
- }
- });
- };
- }
- ]);
-
-}).call(this);
-
-// Generated by CoffeeScript 1.6.2
-/*
-
-ownCloud - News
-
-@author Alessandro Cosentino
-@copyright 2013 Alessandro Cosentino cosenal@gmail.com
-
-This library is free software; you can redistribute it and/or
-modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
-License as published by the Free Software Foundation; either
-version 3 of the License, or any later version.
-
-This library is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU AFFERO GENERAL PUBLIC LICENSE for more details.
-
-You should have received a copy of the GNU Affero General Public
-License along with this library. If not, see <http://www.gnu.org/licenses/>.
-*/
-
-
-(function() {
- angular.module('News').directive('hideOnClick', function() {
- return function(scope, elm, attr) {
- var options;
-
- options = scope.$eval(attr.hideOnClick);
- if (angular.isDefined(options) && angular.isDefined(options.selector)) {
- return $(elm).click(function() {
- return $(options.selector).fadeOut();
- });
- } else {
- return $(elm).click(function() {
- return $(elm).fadeOut();
- });
- }
- };
- });
-
-}).call(this);
-
-// Generated by CoffeeScript 1.6.2
+// Generated by CoffeeScript 1.6.3
/*
ownCloud - News
@@ -297,16 +197,13 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
'$window', function($window) {
return function(scope, elm, attr) {
var getCurrentItem, jumpTo, jumpToNextItem, jumpToPreviousItem, keepUnreadCurrentItem, openCurrentItem, starCurrentItem;
-
jumpTo = function($scrollArea, $item) {
var position;
-
position = $item.offset().top - $scrollArea.offset().top + $scrollArea.scrollTop();
return $scrollArea.scrollTop(position);
};
jumpToPreviousItem = function(scrollArea) {
var $item, $items, $previous, $scrollArea, item, notJumped, _i, _len;
-
$scrollArea = $(scrollArea);
$items = $scrollArea.find('.feed_item');
notJumped = true;
@@ -328,7 +225,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
};
jumpToNextItem = function(scrollArea) {
var $item, $items, $scrollArea, item, jumped, _i, _len;
-
$scrollArea = $(scrollArea);
$items = $scrollArea.find('.feed_item');
jumped = false;
@@ -347,7 +243,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
};
getCurrentItem = function(scrollArea) {
var $item, $items, $scrollArea, item, _i, _len;
-
$scrollArea = $(scrollArea);
$items = $scrollArea.find('.feed_item');
for (_i = 0, _len = $items.length; _i < _len; _i++) {
@@ -360,26 +255,22 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
};
keepUnreadCurrentItem = function(scrollArea) {
var $item;
-
$item = getCurrentItem(scrollArea);
return $item.find('.keep_unread').trigger('click');
};
starCurrentItem = function(scrollArea) {
var $item;
-
$item = getCurrentItem(scrollArea);
return $item.find('.star').trigger('click');
};
openCurrentItem = function(scrollArea) {
var $item;
-
$item = getCurrentItem(scrollArea).find('.item_title a');
$item.trigger('click');
return window.open($item.attr('href'), '_blank');
};
return $($window.document).keydown(function(e) {
var focused, scrollArea;
-
focused = $(':focus');
if (!(focused.is('input') || focused.is('select') || focused.is('textarea') || focused.is('checkbox') || focused.is('button'))) {
scrollArea = elm;
@@ -405,7 +296,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
}).call(this);
-// Generated by CoffeeScript 1.6.2
+// Generated by CoffeeScript 1.6.3
/*
ownCloud - News
@@ -433,16 +324,13 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
'$timeout', function($timeout) {
return function(scope, elm, attr) {
var options;
-
options = scope.$eval(attr.newsClickScroll);
return elm.click(function() {
var direction, scrollArea;
-
scrollArea = $(options.scrollArea);
direction = options.direction;
return $timeout(function() {
var scrollPosition;
-
if (direction === 'top') {
scrollPosition = 0;
} else {
@@ -457,7 +345,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
}).call(this);
-// Generated by CoffeeScript 1.6.2
+// Generated by CoffeeScript 1.6.3
/*
ownCloud - News
@@ -492,7 +380,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
return function(scope, elm, attr) {
return elm.bind('scroll', function() {
var counter, item, _i, _ref, _results;
-
if (scrolling) {
scrolling = false;
setTimeout(function() {
@@ -502,7 +389,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
markingRead = false;
setTimeout(function() {
var $elems, feedItem, id, offset, _i, _len, _results;
-
markingRead = true;
$elems = elm.find('.feed_item:not(.read)');
_results = [];
@@ -542,7 +428,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
}).call(this);
-// Generated by CoffeeScript 1.6.2
+// Generated by CoffeeScript 1.6.3
/*
ownCloud - News
@@ -570,19 +456,16 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
'$rootScope', '$timeout', 'Config', function($rootScope, $timeout, Config) {
return function(scope, elm, attr) {
var caption, timeout, undo;
-
undo = function() {};
caption = '';
timeout = null;
$(elm).click(function() {
var timout;
-
timout = null;
return $(this).fadeOut();
});
$(elm).find('a').click(function() {
var timout;
-
undo();
timout = null;
$rootScope.$apply();
@@ -593,7 +476,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
};
return scope.$on('undoMessage', function(scope, data) {
var _this = this;
-
if (timeout) {
$timeout.cancel(timeout.promise);
}
@@ -610,7 +492,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
}).call(this);
-// Generated by CoffeeScript 1.6.2
+// Generated by CoffeeScript 1.6.3
/*
ownCloud - News
@@ -637,12 +519,10 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
angular.module('News').controller('AppController', [
'$scope', 'Persistence', 'FeedBusinessLayer', function($scope, Persistence, FeedBusinessLayer) {
var AppController;
-
AppController = (function() {
function AppController(_$scope, _persistence, _feedBusinessLayer) {
var successCallback,
_this = this;
-
this._$scope = _$scope;
this._persistence = _persistence;
this._feedBusinessLayer = _feedBusinessLayer;
@@ -663,7 +543,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
}).call(this);
-// Generated by CoffeeScript 1.6.2
+// Generated by CoffeeScript 1.6.3
/*
ownCloud - News
@@ -690,11 +570,9 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
angular.module('News').controller('FeedController', [
'$scope', '_ExistsError', 'Persistence', 'FolderBusinessLayer', 'FeedBusinessLayer', 'SubscriptionsBusinessLayer', 'StarredBusinessLayer', 'unreadCountFormatter', 'ActiveFeed', 'FeedType', '$window', function($scope, _ExistsError, Persistence, FolderBusinessLayer, FeedBusinessLayer, SubscriptionsBusinessLayer, StarredBusinessLayer, unreadCountFormatter, ActiveFeed, FeedType, $window) {
var FeedController;
-
FeedController = (function() {
function FeedController(_$scope, _persistence, _folderBusinessLayer, _feedBusinessLayer, _subscriptionsBusinessLayer, _starredBusinessLayer, _unreadCountFormatter, _activeFeed, _feedType, _$window) {
var _this = this;
-
this._$scope = _$scope;
this._persistence = _persistence;
this._folderBusinessLayer = _folderBusinessLayer;
@@ -714,7 +592,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
this._$scope.unreadCountFormatter = this._unreadCountFormatter;
this._$scope.getTotalUnreadCount = function() {
var count, title, titleCount;
-
count = _this._subscriptionsBusinessLayer.getUnreadCount(0);
if (count > 0) {
titleCount = _this._unreadCountFormatter(count);
@@ -735,7 +612,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
};
this._$scope.addFeed = function(feedUrl, parentFolderId) {
var error;
-
if (parentFolderId == null) {
parentFolderId = 0;
}
@@ -762,13 +638,11 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
};
this._$scope.addFolder = function(folderName) {
var error;
-
_this._$scope.folderExistsError = false;
try {
_this._isAddingFolder = true;
return _this._folderBusinessLayer.create(folderName, function(data) {
var activeId;
-
_this._$scope.folderName = '';
_this._$scope.addNewFolder = false;
_this._isAddingFolder = false;
@@ -799,60 +673,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
}).call(this);
-// Generated by CoffeeScript 1.6.2
-/*
-
-ownCloud - News
-
-@_author Alessandro Cosentino
-@copyright 2013 Alessandro Cosentino cosenal@gmail.com
-
-This library is free software; you can redistribute it and/or
-modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
-License as published by the Free Software Foundation; either
-version 3 of the License, or any later version.
-
-This library is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU AFFERO GENERAL PUBLIC LICENSE for more details.
-
-You should have received a copy of the GNU Affero General Public
-License along with this library. If not, see <http://www.gnu.org/licenses/>.
-*/
-
-
-(function() {
- angular.module('News').controller('InitController', [
- '$scope', 'Persistence', 'FeedBusinessLayer', function($scope, Persistence, FeedBusinessLayer) {
- var InitController;
-
- InitController = (function() {
- function InitController(_$scope, _persistence, _feedBusinessLayer) {
- var successCallback,
- _this = this;
-
- this._$scope = _$scope;
- this._persistence = _persistence;
- this._feedBusinessLayer = _feedBusinessLayer;
- this._$scope.initialized = false;
- this._$scope.feedBusinessLayer = this._feedBusinessLayer;
- successCallback = function() {
- return _this._$scope.initialized = true;
- };
- this._persistence.init().then(successCallback);
- }
-
- return InitController;
-
- })();
- return new InitController($scope, Persistence, FeedBusinessLayer);
- }
- ]);
-
-}).call(this);
-
-// Generated by CoffeeScript 1.6.2
+// Generated by CoffeeScript 1.6.3
/*
ownCloud - News
@@ -879,11 +700,9 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
angular.module('News').controller('ItemController', [
'$scope', 'ItemBusinessLayer', 'FeedModel', 'FeedLoading', 'FeedBusinessLayer', 'Language', 'AutoPageLoading', function($scope, ItemBusinessLayer, FeedModel, FeedLoading, FeedBusinessLayer, Language, AutoPageLoading) {
var ItemController;
-
ItemController = (function() {
function ItemController(_$scope, _itemBusinessLayer, _feedModel, _feedLoading, _autoPageLoading, _feedBusinessLayer, _language) {
var _this = this;
-
this._$scope = _$scope;
this._itemBusinessLayer = _itemBusinessLayer;
this._feedModel = _feedModel;
@@ -902,7 +721,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
};
this._$scope.getFeedTitle = function(feedId) {
var feed;
-
feed = _this._feedModel.getById(feedId);
if (angular.isDefined(feed)) {
return feed.title;
@@ -939,7 +757,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
}).call(this);
-// Generated by CoffeeScript 1.6.2
+// Generated by CoffeeScript 1.6.3
/*
ownCloud - News
@@ -966,11 +784,9 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
angular.module('News').controller('SettingsController', [
'$scope', 'FeedBusinessLayer', 'FolderBusinessLayer', 'ShowAll', function($scope, FeedBusinessLayer, FolderBusinessLayer, ShowAll) {
var _this = this;
-
$scope.feedBusinessLayer = FeedBusinessLayer;
$scope["import"] = function(fileContent) {
var error;
-
$scope.error = false;
ShowAll.setShowAll(true);
try {
@@ -983,7 +799,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
};
return $scope.importGoogleReader = function(fileContent) {
var error, parsedJSON;
-
$scope.jsonError = false;
ShowAll.setShowAll(true);
try {
@@ -1000,7 +815,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
}).call(this);
-// Generated by CoffeeScript 1.6.2
+// Generated by CoffeeScript 1.6.3
/*
ownCloud - News
@@ -1026,12 +841,12 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
(function() {
angular.module('News').factory('ActiveFeed', function() {
var ActiveFeed;
-
ActiveFeed = (function() {
function ActiveFeed() {
/*
Default value is all feeds
*/
+
this._id = 0;
this._type = 3;
}
@@ -1057,7 +872,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
}).call(this);
-// Generated by CoffeeScript 1.6.2
+// Generated by CoffeeScript 1.6.3
/*
ownCloud - News
@@ -1083,7 +898,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
(function() {
angular.module('News').factory('_BusinessLayer', function() {
var BusinessLayer;
-
BusinessLayer = (function() {
function BusinessLayer(_activeFeed, _persistence, _itemModel, _type) {
this._activeFeed = _activeFeed;
@@ -1113,7 +927,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
}).call(this);
-// Generated by CoffeeScript 1.6.2
+// Generated by CoffeeScript 1.6.3
/*
ownCloud - News
@@ -1143,7 +957,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
angular.module('News').factory('FeedBusinessLayer', [
'_BusinessLayer', 'ShowAll', 'Persistence', 'ActiveFeed', 'FeedType', 'ItemModel', 'FeedModel', 'NewLoading', '_ExistsError', 'Utils', '$rootScope', 'NewestItem', function(_BusinessLayer, ShowAll, Persistence, ActiveFeed, FeedType, ItemModel, FeedModel, NewLoading, _ExistsError, Utils, $rootScope, NewestItem) {
var FeedBusinessLayer;
-
FeedBusinessLayer = (function(_super) {
__extends(FeedBusinessLayer, _super);
@@ -1177,7 +990,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
FeedBusinessLayer.prototype["delete"] = function(feedId) {
var data, feed,
_this = this;
-
feed = this._feedModel.removeById(feedId);
data = {
undoCallback: function() {
@@ -1192,7 +1004,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
FeedBusinessLayer.prototype.markRead = function(feedId) {
var feed, item, newestItemId, _i, _len, _ref;
-
feed = this._feedModel.getById(feedId);
newestItemId = this._newestItem.getId();
if (angular.isDefined(feed) && newestItemId !== 0) {
@@ -1226,7 +1037,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
FeedBusinessLayer.prototype.move = function(feedId, folderId) {
var feed;
-
feed = this._feedModel.getById(feedId);
if (angular.isDefined(feed) && feed.folderId !== folderId) {
this._feedModel.update({
@@ -1241,7 +1051,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
FeedBusinessLayer.prototype.setShowAll = function(showAll) {
var callback,
_this = this;
-
this._showAll.setShowAll(showAll);
callback = function() {
_this._itemModel.clear();
@@ -1267,7 +1076,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
FeedBusinessLayer.prototype.getFeedLink = function(feedId) {
var feed;
-
feed = this._feedModel.getById(feedId);
if (angular.isDefined(feed)) {
return feed.link;
@@ -1277,7 +1085,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
FeedBusinessLayer.prototype.create = function(url, parentId, onSuccess, onFailure) {
var feed, success,
_this = this;
-
if (parentId == null) {
parentId = 0;
}
@@ -1326,7 +1133,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
FeedBusinessLayer.prototype.importGoogleReader = function(json) {
var feed, onSuccess, url,
_this = this;
-
url = 'http://owncloud/googlereader';
if (angular.isUndefined(this._feedModel.getByUrl(url))) {
feed = {
@@ -1340,7 +1146,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
}
onSuccess = function(response) {
var id;
-
id = response.data.feeds[0].id;
return _this.load(id);
};
@@ -1356,7 +1161,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
}).call(this);
-// Generated by CoffeeScript 1.6.2
+// Generated by CoffeeScript 1.6.3
/*
ownCloud - News
@@ -1386,7 +1191,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
angular.module('News').factory('FolderBusinessLayer', [
'_BusinessLayer', 'FolderModel', 'FeedBusinessLayer', 'Persistence', 'FeedType', 'ActiveFeed', 'ItemModel', 'ShowAll', '_ExistsError', 'OPMLParser', 'NewestItem', 'FeedModel', '$rootScope', function(_BusinessLayer, FolderModel, FeedBusinessLayer, Persistence, FeedType, ActiveFeed, ItemModel, ShowAll, _ExistsError, OPMLParser, NewestItem, FeedModel, $rootScope) {
var FolderBusinessLayer;
-
FolderBusinessLayer = (function(_super) {
__extends(FolderBusinessLayer, _super);
@@ -1409,7 +1213,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
FolderBusinessLayer.prototype["delete"] = function(folderId) {
var data, feed, feeds, folder, _i, _len, _ref,
_this = this;
-
feeds = [];
_ref = this._feedBusinessLayer.getFeedsOfFolder(folderId);
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
@@ -1436,7 +1239,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
FolderBusinessLayer.prototype.open = function(folderId) {
var folder;
-
folder = this._folderModel.getById(folderId);
if (angular.isDefined(folder)) {
if (!folder.opened) {
@@ -1448,7 +1250,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
FolderBusinessLayer.prototype.toggleFolder = function(folderId) {
var folder;
-
folder = this._folderModel.getById(folderId);
if (angular.isDefined(folder)) {
folder.opened = !folder.opened;
@@ -1462,7 +1263,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
FolderBusinessLayer.prototype.markRead = function(folderId) {
var feed, folder, item, newestItemId, _i, _j, _len, _len1, _ref, _ref1;
-
newestItemId = this._newestItem.getId();
folder = this._folderModel.getById(folderId);
if (newestItemId !== 0 && angular.isDefined(folder)) {
@@ -1488,7 +1288,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
FolderBusinessLayer.prototype.isVisible = function(folderId) {
var feed, _i, _len, _ref;
-
if (this._showAll.getShowAll()) {
return true;
} else {
@@ -1515,7 +1314,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
FolderBusinessLayer.prototype.create = function(folderName, onSuccess, onFailure) {
var folder, success,
_this = this;
-
if (onSuccess == null) {
onSuccess = null;
}
@@ -1553,7 +1351,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
FolderBusinessLayer.prototype["import"] = function(xml) {
var opml;
-
opml = this._opmlParser.parseXML(xml);
return this._importElement(opml, 0);
};
@@ -1561,14 +1358,12 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
FolderBusinessLayer.prototype._importElement = function(opml, parentFolderId) {
var item, _i, _len, _ref, _results,
_this = this;
-
_ref = opml.getItems();