changes in course
This commit is contained in:
parent
b71a52f22d
commit
86c6b95daf
@ -157,7 +157,6 @@ app.controller('courseCtrl', ["$scope","$rootScope","toaster", "$filter", "ngTab
|
||||
* created by kms
|
||||
* */
|
||||
$scope.updateCourse = function (myModel, form, loading) {
|
||||
console.log(form);
|
||||
var firstError = null;
|
||||
if (form.$invalid) {
|
||||
var field = null, firstError = null;
|
||||
@ -223,7 +222,7 @@ app.controller('courseCtrl', ["$scope","$rootScope","toaster", "$filter", "ngTab
|
||||
|
||||
$rootScope.init = function () {
|
||||
$scope.loader='';
|
||||
var getBranch = {
|
||||
var getCourse = {
|
||||
method: 'POST',
|
||||
url: apiPoint.url + 'getCourseDetails/',
|
||||
headers: {
|
||||
@ -233,7 +232,7 @@ app.controller('courseCtrl', ["$scope","$rootScope","toaster", "$filter", "ngTab
|
||||
requestedBy: JSON.parse(localStorage.getItem('localObj')).localUserID
|
||||
}
|
||||
};
|
||||
$http(getBranch).then(function (response) {
|
||||
$http(getCourse).then(function (response) {
|
||||
if (response.data.status==200 && response.data.courseStatus) {
|
||||
$scope.emptyData=true;
|
||||
$scope.loader=true;
|
||||
@ -246,9 +245,13 @@ app.controller('courseCtrl', ["$scope","$rootScope","toaster", "$filter", "ngTab
|
||||
|
||||
|
||||
} else {
|
||||
|
||||
$scope.emptyData=false;
|
||||
$scope.loader=false;
|
||||
$scope.loader=true;
|
||||
$scope.university=response.data.universityDetails;
|
||||
$scope.feesDetails=response.data.feesDetails;
|
||||
$scope.myModel.ListName=$scope.feesDetails[0];
|
||||
$scope.myModel.programListName=$scope.myModel.ListName.programType[0].ListCode;
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user