Skip to content

Commit 476d4f1

Browse files
authored
Create widget client controller.JS
1 parent 91bb46a commit 476d4f1

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
function($scope, $http) {
2+
$scope.approve = function(sysId) {
3+
$http.post('/api/x_your_scope/collab_action', {
4+
action: 'approve',
5+
sys_id: sysId
6+
}).then(function(response) {
7+
$scope.server.update();
8+
});
9+
};
10+
11+
$scope.reject = function(sysId) {
12+
$http.post('/api/x_your_scope/collab_action', {
13+
action: 'reject',
14+
sys_id: sysId
15+
}).then(function(response) {
16+
$scope.server.update();
17+
});
18+
};
19+
}

0 commit comments

Comments
 (0)