diff --git a/guacamole/src/main/webapp/app/form/directives/form.js b/guacamole/src/main/webapp/app/form/directives/form.js index 925128b9e..81f500fc9 100644 --- a/guacamole/src/main/webapp/app/form/directives/form.js +++ b/guacamole/src/main/webapp/app/form/directives/form.js @@ -187,6 +187,15 @@ angular.module('form').directive('guacForm', [function form() { }); + /** + * Returns whether the given field should be focused or not. + * + * @param {Field} field + * The field to check. + * + * @returns {Boolean} + * true if the given field should be focused, false otherwise. + */ $scope.isFocused = function isFocused(field) { return field && (field.name === $scope.focused); }; diff --git a/guacamole/src/main/webapp/app/form/templates/passwordField.html b/guacamole/src/main/webapp/app/form/templates/passwordField.html index 56472ef4e..68d36f758 100644 --- a/guacamole/src/main/webapp/app/form/templates/passwordField.html +++ b/guacamole/src/main/webapp/app/form/templates/passwordField.html @@ -1,4 +1,4 @@