course details changes done
This commit is contained in:
parent
2bfc38a5c1
commit
4c95229647
@ -7,7 +7,6 @@
|
|||||||
app.controller("statusCtrl", ["$scope", "toaster", "$filter", "API_POINTS", "$localStorage", "$http", "$state", function ($scope, toaster, $filter, apiPoint, $localStorage, $http, $state) {
|
app.controller("statusCtrl", ["$scope", "toaster", "$filter", "API_POINTS", "$localStorage", "$http", "$state", function ($scope, toaster, $filter, apiPoint, $localStorage, $http, $state) {
|
||||||
|
|
||||||
$scope.myModel = {
|
$scope.myModel = {
|
||||||
"StatusID": "",
|
|
||||||
"StatusName": "",
|
"StatusName": "",
|
||||||
"switchsetting": true
|
"switchsetting": true
|
||||||
|
|
||||||
@ -72,7 +71,6 @@ $scope.statusForm = {
|
|||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
statusID: myModel.StatusID,
|
|
||||||
statusName: myModel.StatusName,
|
statusName: myModel.StatusName,
|
||||||
status: myModel.switchsetting,
|
status: myModel.switchsetting,
|
||||||
createdBy: JSON.parse(localStorage.getItem('localObj')).localUserID
|
createdBy: JSON.parse(localStorage.getItem('localObj')).localUserID
|
||||||
@ -100,7 +98,6 @@ $scope.statusForm = {
|
|||||||
$scope.myModel = angular.copy($scope.master);
|
$scope.myModel = angular.copy($scope.master);
|
||||||
form.$setPristine(true);
|
form.$setPristine(true);
|
||||||
$scope.myModel = {
|
$scope.myModel = {
|
||||||
"StatusID": "",
|
|
||||||
"StatusName": "",
|
"StatusName": "",
|
||||||
"switchsetting": true
|
"switchsetting": true
|
||||||
};
|
};
|
||||||
@ -186,7 +183,7 @@ $scope.statusForm = {
|
|||||||
ListCode: myModel.ListCode,
|
ListCode: myModel.ListCode,
|
||||||
ListName: myModel.ListName,
|
ListName: myModel.ListName,
|
||||||
status: myModel.IsActive,
|
status: myModel.IsActive,
|
||||||
createdBy: JSON.parse(localStorage.getItem('localObj')).localUserID
|
updatedBy: JSON.parse(localStorage.getItem('localObj')).localUserID
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
$http(update).then(function (response) {
|
$http(update).then(function (response) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user