batch list in decs order changes
This commit is contained in:
parent
eb936b5e2c
commit
5fa5671152
@ -1,6 +1,6 @@
|
||||
'use strict';
|
||||
/*** controller for Wizard Form example***/
|
||||
app.controller('answerBookletStatusCtrl', ["$scope", "toaster", "$filter", "ngTableParams", "API_POINTS", "$http", "SweetAlert", "$state", 'md5', 'ipCookie', function ($scope, toaster, $filter, ngTableParams, apiPoint, $http, SweetAlert, $state, md5, ipCookie) {
|
||||
app.controller('answerBookletStatusCtrl', ["$scope", "toaster", "$filter", "ngTableParams", "API_POINTS", "$http", "SweetAlert", "$state", 'md5', 'ipCookie', 'dateListDescService', function ($scope, toaster, $filter, ngTableParams, apiPoint, $http, SweetAlert, $state, md5, ipCookie, dateListDescService) {
|
||||
|
||||
/**
|
||||
* Answer Booklet status update search
|
||||
@ -105,6 +105,13 @@ app.controller('answerBookletStatusCtrl', ["$scope", "toaster", "$filter", "ngTa
|
||||
$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