mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-02-17 12:06:47 +01:00
CloudFlare DNS: fix search (dnsSearch.filter scope binding)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user