2
0
mirror of https://github.com/VinylDNS/vinyldns synced 2025-08-31 14:25:30 +00:00

Fix for safari issue in autocomplete group search

This commit is contained in:
Jay07GIT
2022-09-15 14:51:23 +05:30
parent 701b60753c
commit d26d53a639
2 changed files with 2 additions and 2 deletions

View File

@@ -81,6 +81,7 @@ angular.module('controller.groups', []).controller('GroupsController', function
},
minLength: 1,
select: function (event, ui) {
$scope.query = ui.item.value;
$("#group-search-text").val(ui.item.value);
return false;
},

View File

@@ -43,8 +43,6 @@
success: function( data ) {
const recordSearch = JSON.parse(JSON.stringify(data));
response($.map(recordSearch.recordSets, function(item) {
$log.log(request.term);
$log.log(item.fqdn);
return {value: item.fqdn +' | '+ item.type , label: 'name: ' + item.fqdn + ' | type: ' + item.type }}))}
});
},
@@ -124,6 +122,7 @@
}
};
function updateRecordDisplay(records) {
var newRecords = [];
angular.forEach(records, function(record) {