Browse Source

filters

develop
Robin Thoni 9 years ago
parent
commit
d061543bdc

+ 2
- 2
luticate/controllers/groups.controller.js View File

19
 
19
 
20
                 canEdit: 'LU_GROUP_EDIT',
20
                 canEdit: 'LU_GROUP_EDIT',
21
 
21
 
22
-                getLoadPagePromise: function (page, perPage, promise) {
23
-                    return luticateAuthGroups.getAll({page: page, perPage: perPage}, promise);
22
+                getLoadPagePromise: function (page, perPage, query, promise) {
23
+                    return luticateAuthGroups.getAll({page: page, perPage: perPage, query: query}, promise);
24
                 },
24
                 },
25
 
25
 
26
                 getDelPromise: function (id, promise) {
26
                 getDelPromise: function (id, promise) {

+ 8
- 2
luticate/controllers/modals/groupusers.controller.js View File

53
                     return true;
53
                     return true;
54
                 },
54
                 },
55
 
55
 
56
-                getLoadPagePromise: function (page, perPage, promise) {
56
+                canFilter: function()
57
+                {
58
+                    return false;
59
+                },
60
+
61
+                getLoadPagePromise: function (page, perPage, query, promise) {
57
                     return luticateAuthGroups.usersGetAll({
62
                     return luticateAuthGroups.usersGetAll({
58
                         group_id: $scope.group.Id,
63
                         group_id: $scope.group.Id,
59
                         page: page,
64
                         page: page,
60
-                        perPage: perPage
65
+                        perPage: perPage,
66
+                        query: query
61
                     }, promise);
67
                     }, promise);
62
                 },
68
                 },
63
 
69
 

+ 2
- 2
luticate/controllers/modals/groupusersadd.controller.js View File

42
 
42
 
43
                 canEdit: 'LU_USER_EDIT',
43
                 canEdit: 'LU_USER_EDIT',
44
 
44
 
45
-                getLoadPagePromise: function (page, perPage, promise) {
46
-                    return luticateAuthUsers.getAll({page: page, perPage: perPage}, promise);
45
+                getLoadPagePromise: function (page, perPage, query, promise) {
46
+                    return luticateAuthUsers.getAll({page: page, perPage: perPage, query: query}, promise);
47
                 },
47
                 },
48
 
48
 
49
                 getItemText: function(item)
49
                 getItemText: function(item)

+ 2
- 2
luticate/controllers/permissions.controller.js View File

25
 
25
 
26
                 canEdit: 'LU_PERM_EDIT',
26
                 canEdit: 'LU_PERM_EDIT',
27
 
27
 
28
-                getLoadPagePromise: function (page, perPage, promise) {
29
-                    return luticateAuthPermissions.getAll({page: page, perPage: perPage}, promise);
28
+                getLoadPagePromise: function (page, perPage, query, promise) {
29
+                    return luticateAuthPermissions.getAll({page: page, perPage: perPage, query: query}, promise);
30
                 },
30
                 },
31
 
31
 
32
                 getDelPromise: function (id, promise) {
32
                 getDelPromise: function (id, promise) {

+ 6
- 6
luticate/controllers/test.controller.js View File

52
                     console.log(item, checked);
52
                     console.log(item, checked);
53
                 },
53
                 },
54
 
54
 
55
-                getLoadPagePromise: function (page, perPage, promise)
55
+                getLoadPagePromise: function (page, perPage, query, promise)
56
                 {
56
                 {
57
-                    return luticateAuthUsers.getAll({page: page, perPage: perPage}, promise);
57
+                    return luticateAuthUsers.getAll({page: page, perPage: perPage, query: query}, promise);
58
                 }
58
                 }
59
             };
59
             };
60
 
60
 
97
                     console.log("edit checked", item, checked);
97
                     console.log("edit checked", item, checked);
98
                 },
98
                 },
99
 
99
 
100
-                getLoadPagePromise: function (page, perPage, promise)
100
+                getLoadPagePromise: function (page, perPage, query, promise)
101
                 {
101
                 {
102
-                    return luticateAuthUsers.getAll({page: page, perPage: perPage}, promise);
102
+                    return luticateAuthUsers.getAll({page: page, perPage: perPage, query: query}, promise);
103
                 },
103
                 },
104
 
104
 
105
 
105
 
179
                     console.log("user checked", item, checked);
179
                     console.log("user checked", item, checked);
180
                 },
180
                 },
181
 
181
 
182
-                getLoadPagePromise: function(page, perPage, promise)
182
+                getLoadPagePromise: function(page, perPage, query, promise)
183
                 {
183
                 {
184
-                    return luticateAuthUsers.getAll({page: page, perPage: perPage}, promise);
184
+                    return luticateAuthUsers.getAll({page: page, perPage: perPage, query: query}, promise);
185
                 },
185
                 },
186
 
186
 
187
                 onPageChanged: function()
187
                 onPageChanged: function()

+ 2
- 2
luticate/controllers/users.controller.js View File

37
 
37
 
38
                 canEdit: 'LU_USER_EDIT',
38
                 canEdit: 'LU_USER_EDIT',
39
 
39
 
40
-                getLoadPagePromise: function (page, perPage, promise) {
41
-                    return luticateAuthUsers.getAll({page: page, perPage: perPage}, promise);
40
+                getLoadPagePromise: function (page, perPage, query, promise) {
41
+                    return luticateAuthUsers.getAll({page: page, perPage: perPage, query: query}, promise);
42
                 },
42
                 },
43
 
43
 
44
                 getDelPromise: function (id, promise) {
44
                 getDelPromise: function (id, promise) {

Loading…
Cancel
Save