From a20c3907a86b7cb0675703f0ed5ab7a6a18fa483 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Thu, 23 Aug 2018 13:21:24 +0530 Subject: [PATCH] study material report call tracking reload chnages --- .../report_study_material_statusCtrl.js | 476 +++++++++--------- 1 file changed, 236 insertions(+), 240 deletions(-) diff --git a/Apollo/assets/js/controllers/report_study_material_statusCtrl.js b/Apollo/assets/js/controllers/report_study_material_statusCtrl.js index 0794ccee..15dc11cf 100755 --- a/Apollo/assets/js/controllers/report_study_material_statusCtrl.js +++ b/Apollo/assets/js/controllers/report_study_material_statusCtrl.js @@ -89,7 +89,12 @@ app.controller('report_study_material_statusCtrl', ["$scope", "$filter","$rootSc $scope.show = false; $scope.onSubmit = function (form) { - $scope.filterUniv = angular.fromJson($scope.univModel.university); + if(angular.isString($scope.univModel.university)) { + $scope.filterUniv = angular.fromJson($scope.univModel.university); + } + else{ + $scope.filterUniv=$scope.univModel.university; + } var firstError = null; if (form.$invalid) { var field = null, firstError = null; @@ -165,10 +170,235 @@ $scope.exportExcel= function () { alasql('SELECT * INTO CSV("Study_material_status.csv",{headers:true}) \ FROM HTML("#data",{headers:true})'); } - - /*modal controller - * */ - app.controller('studentModalDemoCtrl', ["$scope","$rootScope", "$modal", "$log", "API_POINTS", "$http", function ($scope,$rootScope, $modal, $log, apiPoint, $http) { + + /** + * Auto Call Tracking Status + */ + $scope.selectedStudentsID = []; + $scope.isCheckAll = function(e){ + var val = (e.target.checked ? true : false); + if(val) + { + // $scope.disable = false; + var len = $scope.study_mat_data.length; + var i = 0; + for(i=0;i