summaryrefslogtreecommitdiffstats
path: root/js/controller/ContentController.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/controller/ContentController.js')
-rw-r--r--js/controller/ContentController.js14
1 files changed, 10 insertions, 4 deletions
diff --git a/js/controller/ContentController.js b/js/controller/ContentController.js
index c87362557..018c15238 100644
--- a/js/controller/ContentController.js
+++ b/js/controller/ContentController.js
@@ -7,8 +7,9 @@
* @author Bernhard Posselt <dev@bernhard-posselt.com>
* @copyright Bernhard Posselt 2014
*/
-app.controller('ContentController', function (Publisher, FeedResource, ItemResource, SettingsResource, data, $route,
- $routeParams, $location, FEED_TYPE, ITEM_AUTO_PAGE_SIZE, Loading) {
+app.controller('ContentController', function (Publisher, FeedResource, ItemResource, SettingsResource, UserResource,
+ data, $route, $routeParams, $location, FEED_TYPE, ITEM_AUTO_PAGE_SIZE,
+ Loading, $filter) {
'use strict';
var self = this;
@@ -38,7 +39,7 @@ app.controller('ContentController', function (Publisher, FeedResource, ItemResou
var firstItem = orderedItems[0];
// If getOrdering == 1, then the sorting is set to
// newest first. So, item should be the first item
- //
+ //
if (getOrdering()) {
item = firstItem;
}
@@ -106,7 +107,7 @@ app.controller('ContentController', function (Publisher, FeedResource, ItemResou
item.keepUnread = !item.keepUnread;
};
-
+
this.sortIds = function(first, second) {
var firstInt = parseInt(first.value);
var secondInt = parseInt(second.value);
@@ -221,4 +222,9 @@ app.controller('ContentController', function (Publisher, FeedResource, ItemResou
};
this.activeItem = this.getFirstItem();
+
+ this.searchUsers = function(search) {
+ return UserResource.getUsers(search);
+ };
+
});