Explorar el Código

filters

develop
Robin Thoni hace 9 años
padre
commit
d061543bdc

+ 2
- 2
luticate/controllers/groups.controller.js Ver fichero

@@ -19,8 +19,8 @@ angular.module('luticate')
19 19
 
20 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 26
                 getDelPromise: function (id, promise) {

+ 8
- 2
luticate/controllers/modals/groupusers.controller.js Ver fichero

@@ -53,11 +53,17 @@ angular.module('luticate')
53 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 62
                     return luticateAuthGroups.usersGetAll({
58 63
                         group_id: $scope.group.Id,
59 64
                         page: page,
60
-                        perPage: perPage
65
+                        perPage: perPage,
66
+                        query: query
61 67
                     }, promise);
62 68
                 },
63 69
 

+ 2
- 2
luticate/controllers/modals/groupusersadd.controller.js Ver fichero

@@ -42,8 +42,8 @@ angular.module('luticate')
42 42
 
43 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 49
                 getItemText: function(item)

+ 2
- 2
luticate/controllers/permissions.controller.js Ver fichero

@@ -25,8 +25,8 @@ angular.module('luticate')
25 25
 
26 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 32
                 getDelPromise: function (id, promise) {

+ 6
- 6
luticate/controllers/test.controller.js Ver fichero

@@ -52,9 +52,9 @@ angular.module('luticate')
52 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,9 +97,9 @@ angular.module('luticate')
97 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,9 +179,9 @@ angular.module('luticate')
179 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 187
                 onPageChanged: function()

+ 2
- 2
luticate/controllers/users.controller.js Ver fichero

@@ -37,8 +37,8 @@ angular.module('luticate')
37 37
 
38 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 44
                 getDelPromise: function (id, promise) {

Loading…
Cancelar
Guardar