Browse Source

fixed scope primse id

tags/0.1.0
Robin Thoni 9 years ago
parent
commit
bb46a41364
2 changed files with 7 additions and 7 deletions
  1. 5
    5
      src/lupermissionsedit.js
  2. 2
    2
      src/lutable.js

+ 5
- 5
src/lupermissionsedit.js View File

24
                     $scope.editPermission = function(permission, value)
24
                     $scope.editPermission = function(permission, value)
25
                     {
25
                     {
26
                         var promiseEditPermission = {
26
                         var promiseEditPermission = {
27
-                            id: "promiseEditPermission_" + permission.Name + "_" + $scope.$id,
27
+                            id: "promiseEditPermission_" + permission.Name,
28
                             loaderGroups: ['permission_' + permission.Name]
28
                             loaderGroups: ['permission_' + permission.Name]
29
                         };
29
                         };
30
                         luModel.getEditPermissionPromise(permission.Name, value, promiseEditPermission)
30
                         luModel.getEditPermissionPromise(permission.Name, value, promiseEditPermission)
37
                     $scope.delPermission = function(permission)
37
                     $scope.delPermission = function(permission)
38
                     {
38
                     {
39
                         var promiseDelPermission = {
39
                         var promiseDelPermission = {
40
-                            id: "promiseDelPermission_" + permission.Name + "_" + $scope.$id,
40
+                            id: "promiseDelPermission_" + permission.Name,
41
                             loaderGroups: ['permission_' + permission.Name]
41
                             loaderGroups: ['permission_' + permission.Name]
42
                         };
42
                         };
43
                         luModel.getDelPermissionPromise(permission.Name, promiseDelPermission)
43
                         luModel.getDelPermissionPromise(permission.Name, promiseDelPermission)
50
                     $scope.addPermission = function(permission)
50
                     $scope.addPermission = function(permission)
51
                     {
51
                     {
52
                         var promiseAddPermission = {
52
                         var promiseAddPermission = {
53
-                            id: "promiseAddPermission_" + permission.Name + "_" + $scope.$id,
53
+                            id: "promiseAddPermission_" + permission.Name,
54
                             loaderGroups: ['permission_add']
54
                             loaderGroups: ['permission_add']
55
                         };
55
                         };
56
                         luModel.getAddPermissionPromise(permission.Name, permission.Value, promiseAddPermission)
56
                         luModel.getAddPermissionPromise(permission.Name, permission.Value, promiseAddPermission)
63
                     $scope.loadPermissions = function() {
63
                     $scope.loadPermissions = function() {
64
 
64
 
65
                         var promiseLoadPermissions = {
65
                         var promiseLoadPermissions = {
66
-                            id: "promiseLoadPermissions_" + $scope.$id,
66
+                            id: "promiseLoadPermissions_",
67
                             groups: ['permissionList']
67
                             groups: ['permissionList']
68
                         };
68
                         };
69
                         luModel.getGetAllPromise(null, null, promiseLoadPermissions)
69
                         luModel.getGetAllPromise(null, null, promiseLoadPermissions)
75
                     $scope.loadAllPermissions = function() {
75
                     $scope.loadAllPermissions = function() {
76
 
76
 
77
                         var promiseLoadAllPermissions = {
77
                         var promiseLoadAllPermissions = {
78
-                            id: "promiseLoadAllPermissions_" + $scope.$id,
78
+                            id: "promiseLoadAllPermissions",
79
                             groups: ['permission_add']
79
                             groups: ['permission_add']
80
                         };
80
                         };
81
                         luticateAuthPermissions.getAll(null, promiseLoadAllPermissions)
81
                         luticateAuthPermissions.getAll(null, promiseLoadAllPermissions)

+ 2
- 2
src/lutable.js View File

16
                     $scope.selectedItems = [];
16
                     $scope.selectedItems = [];
17
 
17
 
18
                     var promiseLoadItems = {
18
                     var promiseLoadItems = {
19
-                        id: "promiseLoadItems_" + $scope.$id,
19
+                        id: "promiseLoadItems",
20
                         groups: ['itemList']
20
                         groups: ['itemList']
21
                     };
21
                     };
22
                     var promiseDelItems = {
22
                     var promiseDelItems = {
23
-                        id: "promiseDelItems_" + $scope.$id,
23
+                        id: "promiseDelItems",
24
                         loadGroups: ['itemList']
24
                         loadGroups: ['itemList']
25
                     };
25
                     };
26
 
26
 

Loading…
Cancel
Save