(feat) timezones are now using md-autocomplete

This commit is contained in:
Ludovic Marcotte
2015-07-21 15:21:57 -04:00
parent ea68715f59
commit d7c008f2d9
3 changed files with 24 additions and 14 deletions
@@ -30,6 +30,9 @@
vm.save = save;
vm.canChangePassword = canChangePassword;
vm.changePassword = changePassword;
vm.timeZonesList = window.timeZonesList;
vm.timeZonesListFilter = timeZonesListFilter;
vm.timeZonesSearchText = '';
function addCalendarCategory() {
vm.preferences.defaults.SOGoCalendarCategoriesColors["New category"] = "#aaa";
@@ -181,6 +184,12 @@
});
});
}
function timeZonesListFilter(filter) {
return _.filter(vm.timeZonesList, function(value) {
return value.toUpperCase().indexOf(filter.toUpperCase()) >= 0;
});
}
}
angular