From d9936a4e27b7490e1429d3142de295534316ace4 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Tue, 21 Aug 2018 20:23:19 +0530 Subject: [PATCH] report changes --- .../report_study_material_statusCtrl.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Apollo/assets/js/controllers/report_study_material_statusCtrl.js b/Apollo/assets/js/controllers/report_study_material_statusCtrl.js index 3172f0e0..ff76c9af 100755 --- a/Apollo/assets/js/controllers/report_study_material_statusCtrl.js +++ b/Apollo/assets/js/controllers/report_study_material_statusCtrl.js @@ -71,7 +71,20 @@ app.controller('report_study_material_statusCtrl', ["$scope", "$filter","$rootSc } else { } }); - } + } + /* watch university model for bind batch objects*/ + + $scope.$watch('univModel.university', function (newValue,oldValue) { + if(newValue==undefined || newValue==''){ + $scope.filterBatchDetails=""; + } + else{ + if(angular.isString(newValue)){ + $scope.filterBatchDetails=angular.fromJson(newValue); + } + } + + }); $scope.show = false;