1 app.controller("collaborateListController", function ($scope,$http,modalService, $modal,AdminService) {
3 AdminService.getCollaborateList().then(function(data){
6 $scope.tableData = JSON.parse(j.data);
10 console.log("failed");
14 $scope.viewPerPage = 20;
15 $scope.scrollViewsPerPage = 2;
16 $scope.currentPage = 1;
18 $scope.searchCategory = "";
19 $scope.searchString = "";
20 /* modalService.showSuccess('','Modal Sample') ; */
21 for(x in $scope.tableData){
22 if($scope.tableData[x].active_yn=='Y')
23 $scope.tableData[x].active_yn=true;
25 $scope.tableData[x].active_yn=false;
27 $scope.openCollaboration = function(chatId){
28 openInNewTab('openCollaboration?chat_id=' + chatId);
31 $scope.toggleProfileActive = function(profileId) {
32 modalService.popupConfirmWin("Confirm","You are about to change user's active status. Do you want to continue?",
34 $http.get("profile/toggleProfileActive?profile_id="+profileId).success(function(){});
41 function openInNewTab(url) {
42 var win = window.open(url, '_blank');