batch list desc in broad cast
This commit is contained in:
parent
dc94e2f0ce
commit
53bd34d5ba
@ -1,6 +1,6 @@
|
||||
'use strict';
|
||||
/*** controller for Wizard Form example***/
|
||||
app.controller('sendSMSsuperadminCtrl', ["$scope", "$filter", "ngTableParams", "API_POINTS", "$http", "SweetAlert", "$state", 'md5', 'ipCookie', function ($scope, $filter, ngTableParams, apiPoint, $http, SweetAlert, $state, md5, ipCookie) {
|
||||
app.controller('sendSMSsuperadminCtrl', ["$scope", "$filter", "ngTableParams", "API_POINTS", "$http", "SweetAlert", "$state", 'md5', 'ipCookie', 'dateListDescService', function ($scope, $filter, ngTableParams, apiPoint, $http, SweetAlert, $state, md5, ipCookie, dateListDescService) {
|
||||
|
||||
/**
|
||||
* Send SMS Functionality
|
||||
@ -73,6 +73,13 @@ app.controller('sendSMSsuperadminCtrl', ["$scope", "$filter", "ngTableParams", "
|
||||
$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