Skip to content
Snippets Groups Projects
Commit e79652ff authored by Martin Leblanc's avatar Martin Leblanc
Browse files

ISTWCMS-4546:coding standards

parent 5a754012
No related branches found
No related tags found
1 merge request!59ISTWCMS 4546 m26lebla barlow as backup font
/**
* @file
*/
(function ($, Drupal) { (function ($, Drupal) {
Drupal.behaviors.uwFdsuThemeRespUserLogin = { Drupal.behaviors.uwFdsuThemeRespUserLogin = {
attach: function (context, settings) { attach: function (context, settings) {
// Don't do anything if SimpleSAML isn't enabled. // Don't do anything if SimpleSAML isn't enabled.
if ($('#edit-simplesamlphp-auth-login-link').length) if ($('#edit-simplesamlphp-auth-login-link').length) {
{ // Hide the normal login form.
// Hide the normal login form.
$('#user-login-form').css('display', 'none'); $('#user-login-form').css('display', 'none');
// Add buttons (using JS because they don't work without JS) // 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> &nbsp; <button id="local-login-link" class="button--medium">Log in locally</button>'); $('#user-login-form').after('<button id="adfs-login-link" class="button--primary">Log in via ADFS</button> &nbsp; <button id="local-login-link" class="button--medium">Log in locally</button>');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment