Bläddra i källkod

fixed scope primse id

tags/0.1.0
Robin Thoni 9 år sedan
förälder
incheckning
bb46a41364
2 ändrade filer med 7 tillägg och 7 borttagningar
  1. 5
    5
      src/lupermissionsedit.js
  2. 2
    2
      src/lutable.js

+ 5
- 5
src/lupermissionsedit.js Visa fil

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

+ 2
- 2
src/lutable.js Visa fil

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

Laddar…
Avbryt
Spara