batch list in decs order changes
This commit is contained in:
parent
644d5cedc6
commit
eb936b5e2c
@ -1,6 +1,6 @@
|
||||
'use strict';
|
||||
/*** controller for Wizard Form example***/
|
||||
app.controller('applicationStatusCtrl', ["$scope", "toaster", "$filter", "ngTableParams", "API_POINTS", "$http", "SweetAlert", "$state", 'md5', 'ipCookie', function ($scope, toaster, $filter, ngTableParams, apiPoint, $http, SweetAlert, $state, md5, ipCookie) {
|
||||
app.controller('applicationStatusCtrl', ["$scope", "toaster", "$filter", "ngTableParams", "API_POINTS", "$http", "SweetAlert", "$state", 'md5', 'ipCookie', 'dateListDescService', function ($scope, toaster, $filter, ngTableParams, apiPoint, $http, SweetAlert, $state, md5, ipCookie ,dateListDescService) {
|
||||
|
||||
/**
|
||||
* Application status update search / Document status update
|
||||
@ -135,6 +135,13 @@ app.controller('applicationStatusCtrl', ["$scope", "toaster", "$filter", "ngTabl
|
||||
$scope.searchData.Batch = '';
|
||||
$scope.courseData = name.Course;
|
||||
$scope.batchData = name.Batch;
|
||||
//call service for array list in desc order based on date
|
||||
angular.forEach($scope.batchData,function (values,key) {
|
||||
var parts = values.BatchDate.split("-");
|
||||
values.givenDateObject=new Date(parts[2], parts[1] - 1, parts[0]);
|
||||
});
|
||||
$scope.batchData=dateListDescService.getOrderByList($scope.batchData);
|
||||
// end
|
||||
$scope.OpenWindowStatus = false;
|
||||
$scope.getSearch();
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user