mirror of
https://github.com/VinylDNS/vinyldns
synced 2025-09-03 07:45:15 +00:00
Fix for safari issue in autocomplete group search
This commit is contained in:
@@ -81,6 +81,7 @@ angular.module('controller.groups', []).controller('GroupsController', function
|
|||||||
},
|
},
|
||||||
minLength: 1,
|
minLength: 1,
|
||||||
select: function (event, ui) {
|
select: function (event, ui) {
|
||||||
|
$scope.query = ui.item.value;
|
||||||
$("#group-search-text").val(ui.item.value);
|
$("#group-search-text").val(ui.item.value);
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
@@ -43,8 +43,6 @@
|
|||||||
success: function( data ) {
|
success: function( data ) {
|
||||||
const recordSearch = JSON.parse(JSON.stringify(data));
|
const recordSearch = JSON.parse(JSON.stringify(data));
|
||||||
response($.map(recordSearch.recordSets, function(item) {
|
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 }}))}
|
return {value: item.fqdn +' | '+ item.type , label: 'name: ' + item.fqdn + ' | type: ' + item.type }}))}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -124,6 +122,7 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
function updateRecordDisplay(records) {
|
function updateRecordDisplay(records) {
|
||||||
var newRecords = [];
|
var newRecords = [];
|
||||||
angular.forEach(records, function(record) {
|
angular.forEach(records, function(record) {
|
||||||
|
Reference in New Issue
Block a user