|
|
@ -1554,8 +1554,11 @@ angular.module('myApp.controllers', []) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
.controller('ContactsModalController', function ($scope, $modal, $modalInstance, AppUsersManager) { |
|
|
|
.controller('ContactsModalController', function ($scope, $modal, $modalInstance, AppUsersManager) { |
|
|
|
|
|
|
|
|
|
|
|
$scope.contacts = []; |
|
|
|
$scope.contacts = []; |
|
|
|
$scope.search = {}; |
|
|
|
$scope.search = {}; |
|
|
|
|
|
|
|
$scope.slice = {limit: 20, limitDelta: 20} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$scope.selectedContacts = {}; |
|
|
|
$scope.selectedContacts = {}; |
|
|
|
$scope.disabledContacts = {}; |
|
|
|
$scope.disabledContacts = {}; |
|
|
@ -1579,6 +1582,8 @@ angular.module('myApp.controllers', []) |
|
|
|
function updateContacts (query) { |
|
|
|
function updateContacts (query) { |
|
|
|
AppUsersManager.getContacts(query).then(function (contactsList) { |
|
|
|
AppUsersManager.getContacts(query).then(function (contactsList) { |
|
|
|
$scope.contacts = []; |
|
|
|
$scope.contacts = []; |
|
|
|
|
|
|
|
$scope.slice.limit = 20; |
|
|
|
|
|
|
|
|
|
|
|
angular.forEach(contactsList, function(userID) { |
|
|
|
angular.forEach(contactsList, function(userID) { |
|
|
|
var contact = { |
|
|
|
var contact = { |
|
|
|
userID: userID, |
|
|
|
userID: userID, |
|
|
@ -1753,6 +1758,7 @@ angular.module('myApp.controllers', []) |
|
|
|
.controller('CountrySelectModalController', function ($scope, $modalInstance, $rootScope, SearchIndexManager) { |
|
|
|
.controller('CountrySelectModalController', function ($scope, $modalInstance, $rootScope, SearchIndexManager) { |
|
|
|
|
|
|
|
|
|
|
|
$scope.search = {}; |
|
|
|
$scope.search = {}; |
|
|
|
|
|
|
|
$scope.slice = {limit: 20, limitDelta: 20} |
|
|
|
|
|
|
|
|
|
|
|
var searchIndex = SearchIndexManager.createIndex(); |
|
|
|
var searchIndex = SearchIndexManager.createIndex(); |
|
|
|
|
|
|
|
|
|
|
@ -1770,6 +1776,8 @@ angular.module('myApp.controllers', []) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$scope.countries = []; |
|
|
|
$scope.countries = []; |
|
|
|
|
|
|
|
$scope.slice.limit = 20; |
|
|
|
|
|
|
|
|
|
|
|
var j; |
|
|
|
var j; |
|
|
|
for (var i = 0; i < Config.CountryCodes.length; i++) { |
|
|
|
for (var i = 0; i < Config.CountryCodes.length; i++) { |
|
|
|
if (!filtered || results[i]) { |
|
|
|
if (!filtered || results[i]) { |
|
|
|