report changes
This commit is contained in:
parent
5be0fea000
commit
eaed01de70
@ -2,7 +2,6 @@
|
||||
/*** controller***/
|
||||
app.controller('report_certificateCtrl', ["$scope", "$filter","$rootScope","$modal", "API_POINTS", "$http", "SweetAlert", "$state", 'md5', 'ipCookie', '$window',"dateListDescService",
|
||||
function ($scope, $filter,$rootScope,$modal, apiPoint, $http, SweetAlert, $state, md5, ipCookie, $window, dateListDescService) {
|
||||
|
||||
/*
|
||||
* auto call tracking
|
||||
*/
|
||||
@ -83,6 +82,32 @@ app.controller('report_certificateCtrl', ["$scope", "$filter","$rootScope","$mod
|
||||
}
|
||||
});
|
||||
}
|
||||
/* watch university model for bind batch objects*/
|
||||
|
||||
$scope.$watchCollection('univModel.university', function (newValue,oldValue) {
|
||||
if(newValue==undefined || newValue==''){
|
||||
$scope.filterBatchDetails="";
|
||||
$scope.disableSubmit=true;
|
||||
}
|
||||
else{
|
||||
if(angular.isString(newValue)){
|
||||
$scope.filterBatchDetails=angular.fromJson(newValue);
|
||||
$scope.disableSubmit=false;
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
// disable submit
|
||||
$scope.$watchCollection('filters.from_date', function (newValue,oldValue) {
|
||||
if(newValue==undefined || newValue=='' || newValue==null){
|
||||
$scope.disableSubmit=true;
|
||||
}
|
||||
else{
|
||||
$scope.disableSubmit=false;
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$scope.onSubmit = function () {
|
||||
//alert($scope.batch.name);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user