reset the expect dns records on refresh
This commit is contained in:
@@ -466,9 +466,11 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
|
||||
}
|
||||
};
|
||||
|
||||
function collapseDnsRecords() {
|
||||
function resetDnsRecords() {
|
||||
$scope.expectedDnsRecordsTypes.forEach(function (record) {
|
||||
var type = record.value;
|
||||
$scope.expectedDnsRecords[type] = {};
|
||||
|
||||
$('#collapse_dns_' + type).collapse('hide');
|
||||
});
|
||||
|
||||
@@ -503,7 +505,7 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
|
||||
$scope.refreshDomain = function () {
|
||||
$scope.refreshBusy = true;
|
||||
|
||||
collapseDnsRecords();
|
||||
resetDnsRecords();
|
||||
|
||||
Client.getMailConfigForDomain($scope.selectedDomain.domain, function (error, mailConfig) {
|
||||
if (error) {
|
||||
|
||||
Reference in New Issue
Block a user