diff --git a/admin/static/js/app.js b/admin/static/js/app.js index 83f356d0..0039770e 100644 --- a/admin/static/js/app.js +++ b/admin/static/js/app.js @@ -564,6 +564,18 @@ angular.module("FICApp") }) .controller("AllTeamAssociationsController", function ($scope, $http) { + $scope.newdqa = ""; + $scope.addDelegatedQA = function () { + if ($scope.newdqa.length) { + if (!$scope.config.delegated_qa) + $scope.config.delegated_qa = []; + + $scope.config.delegated_qa.push($scope.newdqa); + $scope.saveSettings(); + $scope.newdqa = ""; + } + } + $scope.allAssociations = []; $http.get("api/teams-associations.json").then(function (response) { $scope.allAssociations = response.data; @@ -625,17 +637,6 @@ angular.module("FICApp") $scope.config.disablesubmitbutton = ""; }; - $scope.newdqa = ""; - $scope.addDelegatedQA = function () { - if ($scope.newdqa.length) { - if (!$scope.config.delegated_qa) - $scope.config.delegated_qa = []; - - $scope.config.delegated_qa.push($scope.newdqa); - $scope.saveSettings(); - $scope.newdqa = ""; - } - } $scope.dropDelegatedQA = function (member) { if (!$scope.config.delegated_qa) { $scope.config.delegated_qa = []; diff --git a/admin/static/views/settings.html b/admin/static/views/settings.html index 72474aab..58035170 100644 --- a/admin/static/views/settings.html +++ b/admin/static/views/settings.html @@ -306,7 +306,7 @@ -
+