mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-05-07 01:07:05 +02:00
CloudFlare DNS: fix search (custom filter), search icon left of box
This commit is contained in:
@@ -1163,6 +1163,15 @@ app.controller('addModifyDNSRecordsCloudFlare', function ($scope, $http, $window
|
||||
return list;
|
||||
};
|
||||
$scope.dnsSearchFilter = '';
|
||||
$scope.matchDnsSearch = function (record) {
|
||||
var q = ($scope.dnsSearchFilter || '').toLowerCase().trim();
|
||||
if (!q) return true;
|
||||
var name = (record.name || '').toLowerCase();
|
||||
var type = (record.type || '').toLowerCase();
|
||||
var content = (record.content || '').toLowerCase();
|
||||
var priority = String(record.priority != null ? record.priority : '');
|
||||
return name.indexOf(q) !== -1 || type.indexOf(q) !== -1 || content.indexOf(q) !== -1 || priority.indexOf(q) !== -1;
|
||||
};
|
||||
$scope.sortColumn = 'name';
|
||||
$scope.sortReverse = false;
|
||||
$scope.setSort = function (col) {
|
||||
|
||||
Reference in New Issue
Block a user