CloudFlare DNS: fix search (dnsSearch.filter scope binding)

This commit is contained in:
master3395
2026-02-16 18:02:27 +01:00
parent 8734b27595
commit c697bea9eb
3 changed files with 8 additions and 8 deletions

View File

@@ -1177,9 +1177,9 @@ app.controller('addModifyDNSRecordsCloudFlare', function ($scope, $http, $window
}
return list;
};
$scope.dnsSearchFilter = '';
$scope.dnsSearch = { filter: '' };
$scope.matchDnsSearch = function (record) {
var q = ($scope.dnsSearchFilter || '').toLowerCase().trim();
var q = (($scope.dnsSearch && $scope.dnsSearch.filter) != null ? String($scope.dnsSearch.filter) : '').toLowerCase().trim();
if (!q) return true;
var name = (record.name || '').toLowerCase();
var type = (record.type || '').toLowerCase();