changes in call tracking model
This commit is contained in:
parent
445c25b261
commit
9b3189c59a
@ -23,10 +23,23 @@ app.controller('callTrackingCtrl', ["$scope","$rootScope","toaster", "$filter",
|
|||||||
|
|
||||||
|
|
||||||
//get current date
|
//get current date
|
||||||
|
$scope.hideDateSearch=true;
|
||||||
$scope.currentDate=$filter('date')(new Date(), 'dd-MM-yyyy');
|
$scope.currentDate=$filter('date')(new Date(), 'dd-MM-yyyy');
|
||||||
$scope.myModel.date=$scope.currentDate;
|
$scope.myModel.date=$scope.currentDate;
|
||||||
$scope.search=$scope.currentDate;
|
$scope.search=$scope.currentDate;
|
||||||
|
$scope.myModel.searchDate=$scope.currentDate;
|
||||||
|
$scope.checkDate = function (value) {
|
||||||
|
if(value==null || value==undefined){
|
||||||
|
$scope.search='';
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$scope.filterSearch=$filter('date')(value, 'dd-MM-yyyy');
|
||||||
|
$scope.search=$scope.filterSearch;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
* edit branch details
|
* edit branch details
|
||||||
* created by kms
|
* created by kms
|
||||||
@ -63,6 +76,7 @@ app.controller('callTrackingCtrl', ["$scope","$rootScope","toaster", "$filter",
|
|||||||
|
|
||||||
var firstError = null;
|
var firstError = null;
|
||||||
if (form.$invalid) {
|
if (form.$invalid) {
|
||||||
|
|
||||||
var field = null, firstError = null;
|
var field = null, firstError = null;
|
||||||
for (field in form) {
|
for (field in form) {
|
||||||
if (field[0] != '$') {
|
if (field[0] != '$') {
|
||||||
@ -77,6 +91,7 @@ app.controller('callTrackingCtrl', ["$scope","$rootScope","toaster", "$filter",
|
|||||||
angular.element('.ng-invalid[name=' + firstError + ']').focus();
|
angular.element('.ng-invalid[name=' + firstError + ']').focus();
|
||||||
// swal("The form cannot be submitted because it contains validation errors!", "Errors are marked with a red, dashed border!", "error");
|
// swal("The form cannot be submitted because it contains validation errors!", "Errors are marked with a red, dashed border!", "error");
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$scope.ldloading1 = {};
|
$scope.ldloading1 = {};
|
||||||
|
|
||||||
$scope.ldloading1[loading.replace('-', '_')] = true;
|
$scope.ldloading1[loading.replace('-', '_')] = true;
|
||||||
@ -379,4 +394,3 @@ app.controller('callTrackingCtrl2', ["$scope","$rootScope","toaster", "$filter",
|
|||||||
}]);
|
}]);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user