Set autofocus in setupdns view

This commit is contained in:
Johannes Zellner
2020-03-09 16:08:55 -07:00
parent 08c1a33362
commit e00dccaa7c

View File

@@ -1,7 +1,6 @@
'use strict';
/* global tld:false */
/* global angular:false */
/* global $, tld, angular */
// create main application module
var app = angular.module('Application', ['angular-md5', 'ui-notification', 'ui.bootstrap']);
@@ -279,6 +278,8 @@ app.controller('SetupDNSController', ['$scope', '$http', '$timeout', 'Client', f
$scope.provider = status.provider;
$scope.webServerOrigin = status.webServerOrigin;
$scope.state = 'initialized';
setTimeout(function () { $("[autofocus]:first").focus(); }, 100);
});
}