Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GIP RENATER
switch-wayf
Commits
77668b21
Commit
77668b21
authored
Jul 30, 2010
by
haemmer
Browse files
Removed config check for optional wayf_use_discovery_service setting
Added code of wayf_overwrite_most_used_idps_text regarding #232
parent
598cf2e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates.php
View file @
77668b21
...
@@ -544,7 +544,6 @@ function decodeBase64(input) {
...
@@ -544,7 +544,6 @@ function decodeBase64(input) {
|| typeof(wayf_use_discovery_service) != "boolean"
|| typeof(wayf_use_discovery_service) != "boolean"
){
){
wayf_use_discovery_service = true;
wayf_use_discovery_service = true;
config_ok = false;
}
}
if(typeof(wayf_sp_entityID) == "undefined"){
if(typeof(wayf_sp_entityID) == "undefined"){
...
@@ -839,10 +838,13 @@ SCRIPT;
...
@@ -839,10 +838,13 @@ SCRIPT;
// Add first entry: "Select your IdP..."
// Add first entry: "Select your IdP..."
writeHTML('<option value="-">{$selectIdPString} ...</option>');
writeHTML('<option value="-">{$selectIdPString} ...</option>');
// Favourites
// Favourites
if (wayf_most_used_idps.length > 0){
if (wayf_most_used_idps.length > 0){
writeHTML('<optgroup label="{$mostUsedIdPsString}">');
if(typeof(wayf_overwrite_most_used_idps_text) == "undefined"){
writeHTML('<optgroup label="{$mostUsedIdPsString}">');
} else {
writeHTML('<optgroup label="' + wayf_overwrite_most_used_idps_text + '">');
}
// Show additional IdPs in the order they are defined
// Show additional IdPs in the order they are defined
for ( var i=0; i < wayf_most_used_idps.length; i++){
for ( var i=0; i < wayf_most_used_idps.length; i++){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment