From e79652ffec111d4b76ce630ea3f294486843ca01 Mon Sep 17 00:00:00 2001 From: Martin Leblanc <m26lebla@uwaterloo.ca> Date: Wed, 1 Dec 2021 21:32:37 +0000 Subject: [PATCH] ISTWCMS-4546:coding standards --- js/user-login.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/js/user-login.js b/js/user-login.js index c0f36da1..5d258fe7 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>'); -- GitLab