From 7a9173a82f552e25e0c32ff621b821dd2fa56197 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Tue, 21 Aug 2018 20:23:38 +0530 Subject: [PATCH] report changes --- .../js/controllers/report_markcard_statusCtrl.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Apollo/assets/js/controllers/report_markcard_statusCtrl.js b/Apollo/assets/js/controllers/report_markcard_statusCtrl.js index 7792ce41..93bf760d 100755 --- a/Apollo/assets/js/controllers/report_markcard_statusCtrl.js +++ b/Apollo/assets/js/controllers/report_markcard_statusCtrl.js @@ -2,7 +2,6 @@ /*** controller***/ app.controller('report_markcard_statusCtrl', ["$scope", "$filter","$rootScope", "API_POINTS", "$http", "SweetAlert", "$state", 'md5', 'ipCookie', '$window',"dateListDescService","$modal", function ($scope, $filter,$rootScope, apiPoint, $http, SweetAlert, $state, md5, ipCookie, $window, dateListDescService,$modal,$log) { - /** * auto call tracking */ @@ -47,7 +46,7 @@ app.controller('report_markcard_statusCtrl', ["$scope", "$filter","$rootScope", }; $scope.filters = function () { - var filterlist = { + var filterlist = { method: 'POST', url: apiPoint.url + 'report_filters/', headers: { @@ -82,6 +81,19 @@ app.controller('report_markcard_statusCtrl', ["$scope", "$filter","$rootScope", } }); } + /* 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; $scope.onSubmit = function (form) {