diff --git a/dns/templates/dns/addDeleteDNSRecordsCloudFlare.html b/dns/templates/dns/addDeleteDNSRecordsCloudFlare.html
index e77902b56..3efd5a51f 100644
--- a/dns/templates/dns/addDeleteDNSRecordsCloudFlare.html
+++ b/dns/templates/dns/addDeleteDNSRecordsCloudFlare.html
@@ -961,8 +961,8 @@
-
-
+
+
@@ -973,7 +973,7 @@
No DNS records found.
-
+
{% trans "No records match your search." %}
@@ -1003,7 +1003,7 @@
-
+
|
diff --git a/public/static/dns/dns.js b/public/static/dns/dns.js
index 48f86198c..467141998 100644
--- a/public/static/dns/dns.js
+++ b/public/static/dns/dns.js
@@ -1173,9 +1173,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();
diff --git a/static/dns/dns.js b/static/dns/dns.js
index 42a700831..a60f11fc4 100644
--- a/static/dns/dns.js
+++ b/static/dns/dns.js
@@ -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();
|