fix some linter complaints
This commit is contained in:
parent
f3445c24b9
commit
79fecd6b03
|
@ -8,8 +8,9 @@
|
||||||
$scope.equivalentDomains = [];
|
$scope.equivalentDomains = [];
|
||||||
|
|
||||||
apiService.settings.getDomains({}, function (response) {
|
apiService.settings.getDomains({}, function (response) {
|
||||||
|
var i;
|
||||||
if (response.EquivalentDomains) {
|
if (response.EquivalentDomains) {
|
||||||
for (var i = 0; i < response.EquivalentDomains.length; i++) {
|
for (i = 0; i < response.EquivalentDomains.length; i++) {
|
||||||
$scope.equivalentDomains.push(response.EquivalentDomains[i].join(', '));
|
$scope.equivalentDomains.push(response.EquivalentDomains[i].join(', '));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -27,16 +28,16 @@
|
||||||
|
|
||||||
$scope.toggleExclude = function (globalDomain) {
|
$scope.toggleExclude = function (globalDomain) {
|
||||||
globalDomain.excluded = !globalDomain.excluded;
|
globalDomain.excluded = !globalDomain.excluded;
|
||||||
}
|
};
|
||||||
|
|
||||||
$scope.customize = function (globalDomain) {
|
$scope.customize = function (globalDomain) {
|
||||||
globalDomain.excluded = true;
|
globalDomain.excluded = true;
|
||||||
$scope.equivalentDomains.push(globalDomain.domains);
|
$scope.equivalentDomains.push(globalDomain.domains);
|
||||||
}
|
};
|
||||||
|
|
||||||
$scope.delete = function (i) {
|
$scope.delete = function (i) {
|
||||||
$scope.equivalentDomains.splice(i, 1);
|
$scope.equivalentDomains.splice(i, 1);
|
||||||
}
|
};
|
||||||
|
|
||||||
$scope.addEdit = function (i) {
|
$scope.addEdit = function (i) {
|
||||||
var addEditModal = $uibModal.open({
|
var addEditModal = $uibModal.open({
|
||||||
|
@ -62,7 +63,7 @@
|
||||||
$scope.equivalentDomains.push(returnObj.domains);
|
$scope.equivalentDomains.push(returnObj.domains);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
$scope.save = function () {
|
$scope.save = function () {
|
||||||
var request = {
|
var request = {
|
||||||
|
|
Loading…
Reference in New Issue