зеркало из https://github.com/nextcloud/news.git
This commit is contained in:
Родитель
d25ca8b4d6
Коммит
f9be39a2bb
|
@ -9,12 +9,11 @@
|
|||
*/
|
||||
app.run(function ($rootScope, $location, $http, $q, $interval, Loading,
|
||||
ItemResource, FeedResource, FolderResource, SettingsResource,
|
||||
Publisher, BASE_URL, FEED_TYPE, REFRESH_RATE, $animate) {
|
||||
Publisher, BASE_URL, FEED_TYPE, REFRESH_RATE) {
|
||||
'use strict';
|
||||
|
||||
// show Loading screen
|
||||
Loading.setLoading('global', true);
|
||||
$animate.enabled(false);
|
||||
|
||||
// listen to keys in returned queries to automatically distribute the
|
||||
// incoming values to models
|
||||
|
|
|
@ -361,8 +361,8 @@ app.controller('ContentController',
|
|||
|
||||
}]);
|
||||
app.controller('NavigationController',
|
||||
["$route", "FEED_TYPE", "FeedResource", "FolderResource", "ItemResource", "SettingsResource", "Publisher", "$rootScope", "$location", "$q", "$animate", function ($route, FEED_TYPE, FeedResource, FolderResource, ItemResource,
|
||||
SettingsResource, Publisher, $rootScope, $location, $q, $animate) {
|
||||
["$route", "FEED_TYPE", "FeedResource", "FolderResource", "ItemResource", "SettingsResource", "Publisher", "$rootScope", "$location", "$q", function ($route, FEED_TYPE, FeedResource, FolderResource, ItemResource,
|
||||
SettingsResource, Publisher, $rootScope, $location, $q) {
|
||||
'use strict';
|
||||
|
||||
this.feedError = '';
|
||||
|
@ -426,7 +426,6 @@ app.controller('NavigationController',
|
|||
};
|
||||
|
||||
this.getFolderUnreadCount= function (folderId) {
|
||||
$animate.enabled(true);
|
||||
return FeedResource.getFolderUnreadCount(folderId);
|
||||
};
|
||||
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -9,7 +9,7 @@
|
|||
*/
|
||||
app.controller('NavigationController',
|
||||
function ($route, FEED_TYPE, FeedResource, FolderResource, ItemResource,
|
||||
SettingsResource, Publisher, $rootScope, $location, $q, $animate) {
|
||||
SettingsResource, Publisher, $rootScope, $location, $q) {
|
||||
'use strict';
|
||||
|
||||
this.feedError = '';
|
||||
|
@ -73,7 +73,6 @@ function ($route, FEED_TYPE, FeedResource, FolderResource, ItemResource,
|
|||
};
|
||||
|
||||
this.getFolderUnreadCount= function (folderId) {
|
||||
$animate.enabled(true);
|
||||
return FeedResource.getFolderUnreadCount(folderId);
|
||||
};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче