diff --git a/js/user-login.js b/js/user-login.js index c0f36da198dae9910c29099567cc49f3f022d698..5d258fe7d883dbaf2ac638ac1fee55214b9e2b18 100644 --- a/js/user-login.js +++ b/js/user-login.js @@ -1,10 +1,13 @@ +/** + * @file + */ + (function ($, Drupal) { Drupal.behaviors.uwFdsuThemeRespUserLogin = { attach: function (context, settings) { // Don't do anything if SimpleSAML isn't enabled. - if ($('#edit-simplesamlphp-auth-login-link').length) - { - // Hide the normal login form. + if ($('#edit-simplesamlphp-auth-login-link').length) { + // Hide the normal login form. $('#user-login-form').css('display', 'none'); // Add buttons (using JS because they don't work without JS) $('#user-login-form').after('<button id="adfs-login-link" class="button--primary">Log in via ADFS</button> <button id="local-login-link" class="button--medium">Log in locally</button>');