change user.search to accept params
can search substr with startsWith:false
no infinite scroll on admin user search page
This commit is contained in:
barisusakli
2014-12-31 17:13:19 -05:00
parent fbd875b397
commit 6d31fee3f5
6 changed files with 38 additions and 24 deletions

View File

@@ -9,7 +9,7 @@ var usersController = {};
usersController.search = function(req, res, next) {
res.render('admin/manage/users', {
search_display: '',
loadmore_display: 'none',
loadmore_display: 'hide',
users: []
});
};
@@ -52,6 +52,9 @@ function getUsers(set, req, res, next) {
usersController.getCSV = function(req, res, next) {
user.getUsersCSV(function(err, data) {
if (err) {
return next(err);
}
res.attachment('users.csv');
res.setHeader('Content-Type', 'text/csv');
res.end(data);