1/** 2 * Created by intel on 31/8/18. 3 */ 4(function () { 5 "use strict"; 6 angular.module('event',[]) 7 .controller('EventController',['$scope', '$log', '$timeout', 'API_BASE_URL','$location','$rootScope','$sce','$route','$fancyModal','SweetAlert','$httpApi','$otherService', 8 function ($scope, $log, $timeout,API_BASE_URL,$location,$rootScope,$sce,$route,$fancyModal,SweetAlert,$httpApi,$otherService){ 9 10 $scope.privacySetting=[{"id":1,name:"Private",msg:"Members can join the group by invite only."},{"id":2,name:"Public",msg:"Anyone can find and join the group. Only members can see posts."}]; 11 $scope.group={}; 12 $scope.person = {}; 13 14 $scope.baseUrl = API_BASE_URL; 15 $scope.groupPosts = []; 16 $scope.searchBuddy = ''; 17 $scope.currentPath = $location.path(); 18 console.log($scope.currentPath); 19 /* $scope.sharePostData = { 20 message: '', 21 photo_url: [], 22 video_url: {}, 23 privacy_settings: '2' 24 };*/ 25 $scope.isPostSubmitDisabled = false; 26 27 $scope.showEdit = []; 28 $scope.showPostEdit = []; 29 $scope.updatedPost = []; 30 $scope.updatedComment = []; 31 $scope.newComment = []; 32 $scope.gecPosts = []; 33 $scope.postsImages = []; 34 $scope.gecId = 0; 35 $scope.gecMembers = []; 36 $scope.isUserMemberOfTheGroup = 2; 37 38 39 $scope.posts=[]; 40 $scope.invite_members=[]; 41 $scope.invite_members=[]; 42 $scope.privacymsg=" "; 43 $scope.cropper1 = {}; 44 $scope.cropper1.sourceImage = null; 45 $scope.cropper1.croppedImage = null; 46 $scope.bounds1 = {}; 47 $scope.bounds1.left = 0; 48 $scope.bounds1.right = 0; 49 $scope.bounds1.top = 0; 50 $scope.bounds1.bottom = 0; 51 $scope.showInviteScreen = false; 52 $scope.canInvite = false; 53 54 $scope.cropper2 = {}; 55 $scope.cropper2.sourceImage = null; 56 $scope.cropper2.croppedImage = null; 57 $scope.bounds2 = {}; 58 $scope.bounds2.left = 0; 59 $scope.bounds2.right = 0; 60 $scope.bounds2.top = 0; 61 $scope.bounds2.bottom = 0; 62 63 $scope.groupDetail={}; 64 $scope.name=''; 65 $rootScope.users=0; 66 $scope.isEditing = false; 67 $scope.changeGroupLogo = false; 68 $scope.changeGroupCover = false; 69 $rootScope.hasDesciption=false; 70 $scope.sharePostData={}; 71 $scope.isPostSubmitDisabled = false; 72 $scope.group.privacy_settings = 1; 73 $scope.isSubmitted = false; 74 75 $scope.sports={}; 76 $scope.sportsmodel=[]; 77 78 $scope.myBuddyList=[]; 79 $scope.myBuddyIds=[]; 80 $scope.myBuddies =[]; 81 $scope.myMemberList=[]; 82 $scope.searchresult= false; 83 $scope.suggestedGroups= []; 84 85 if(!localStorage.getItem('user')) 86 { 87 $rootScope.users=0; 88 $location.path('/login'); 89 } 90 if(localStorage.getItem('user')) 91 { 92 $rootScope.userDetail=JSON.parse(localStorage.getItem('user')); 93 if($rootScope.userDetail.user_type_id==2) { 94 $rootScope.admin = 1; 95 $rootScope.users = 3; 96 $rootScope.loginUser=JSON.parse(localStorage.getItem('user')); 97 } 98 if($rootScope.userDetail.user_type_id==1) 99 { 100 $rootScope.admin = null; 101 $rootScope.users = 1; 102 $rootScope.loginUser=JSON.parse(localStorage.getItem('user')); 103 } 104 105 //console.log($rootScope.userDetail); 106 } 107 108 }]); 109})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.