Certificate: |
@@ -206,7 +208,7 @@
-
+
SMTP Server: |
@@ -249,7 +251,7 @@
-
+
Username: |
@@ -299,7 +301,7 @@
|
-
+
LDAP URI: |
|
@@ -356,7 +358,7 @@
-
+
Github: |
@@ -366,7 +368,7 @@
|
-
+
Github Endpoint: |
Enable Google Authentication
-
+
OAuth Client ID: |
@@ -465,7 +467,7 @@
-
+
Github (Enterprise) Build Triggers
@@ -488,7 +490,7 @@
-
+
Github: |
@@ -498,7 +500,7 @@
|
-
+
Github Endpoint: |
+
+
diff --git a/static/js/core-config-setup.js b/static/js/core-config-setup.js
index d2669bb12..e6a79d4b6 100644
--- a/static/js/core-config-setup.js
+++ b/static/js/core-config-setup.js
@@ -127,6 +127,16 @@ angular.module("core-config-setup", ['angularFileUpload'])
}, ApiService.errorDisplay('Could not validate configuration. Please report this error.'));
};
+ $scope.checkValidateAndSave = function() {
+ if ($scope.configform.$valid) {
+ $scope.validateAndSave();
+ return;
+ }
+
+ $element.find("input.ng-invalid:first")[0].scrollIntoView();
+ $element.find("input.ng-invalid:first").focus();
+ };
+
$scope.validateAndSave = function() {
$scope.savingConfiguration = false;
$scope.validating = $scope.getServices($scope.config);
@@ -593,9 +603,7 @@ angular.module("core-config-setup", ['angularFileUpload'])
}, true);
$scope.$watch('binding', function(binding) {
- if (!binding) { return; }
-
- var current = binding;
+ var current = binding || [];
var items = [];
var itemHash = '';
for (var i = 0; i < current.length; ++i) {
| | | | |