From 9527f9f425fe5a06fed2e226aec33c8cf6508a22 Mon Sep 17 00:00:00 2001 From: haemmer Date: Fri, 16 Dec 2011 16:11:02 +0000 Subject: [PATCH] First entry of drop down list is now replaced depending on Javascript support --- default-header.php | 4 ++++ languages.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/default-header.php b/default-header.php index df1e882..ab41554 100644 --- a/default-header.php +++ b/default-header.php @@ -78,6 +78,10 @@ setFocus(); if (){ + + var searchText = ''; + $("#userIdPSelection:enabled option[value='-']").text(searchText); + // Convert select element into improved drop down list $("#userIdPSelection:enabled").improveDropDown({ iconPath:'/drop_icon.png', diff --git a/languages.php b/languages.php index ff506b5..f9f21a1 100755 --- a/languages.php +++ b/languages.php @@ -28,6 +28,7 @@ $langStrings['en'] = array ( 'save_button' => 'Save', 'access_host' => 'In order to access a service on host \'%s\' please select or search the organisation you are affiliated with.', 'select_idp' => 'Select the organisation you are affiliated with', +'search_idp' => 'Type the name of the organisation you are affiliated with', 'remember_selection' => 'Remember selection for this web browser session.', 'additional_info' => 'SWITCH provides innovative, unique internet services for the Swiss universities and internet users.', 'invalid_user_idp' => 'There may be an error in the data you just submitted.
The value of your input \'%s\' is invalid.
Only the following values are allowed:', @@ -74,6 +75,7 @@ $langStrings['de'] = array ( 'save_button' => 'Speichern', 'access_host' => 'Um auf einen Dienst auf dem Server \'%s\' zuzugreifen, wählen oder suchen Sie bitte die Organisation, der Sie angehören.', 'select_idp' => 'Wählen Sie die Organisation aus, der Sie angehören', +'search_idp' => 'Tippen Sie den Namen der Organisation, der Sie angehören', 'remember_selection' => 'Auswahl für die laufende Webbrowser Sitzung speichern.', 'additional_info' => 'SWITCH erbringt innovative, einzigartige Internet-Dienstleistungen für die Schweizer Hochschulen und Internetbenutzer.', 'invalid_user_idp' => 'Möglicherweise sind die übermittelten Daten fehlerhaft.
Der Wert der Eingabe \'%s\' ist ungültig.
Es sind ausschliesslich die folgenden Wert erlaubt:', @@ -119,6 +121,7 @@ $langStrings['fr'] = array ( 'save_button' => 'Sauver', 'access_host' => 'Pour accéder à la ressource \'%s\' veuillez sélectionner ou chercher l\'organisation à laquelle vous appartenez.', 'select_idp' => 'Veuillez sélectionner l\'organisation à laquelle vous appartenez.', +'search_idp' => 'Veuillez tapper le nom de l\'organisation à laquelle vous appartenez.', 'remember_selection' => 'Se souvenir de mon choix pour cette session.', 'additional_info' => 'SWITCH fournit des prestations innovantes et uniques pour les hautes écoles suisses et les utilisateurs d\'Internet.', 'invalid_user_idp' => 'Une erreur s\'est produite.
La valeur de votre donnée \'%s\' n\'est pas valide.
Seules ces valeurs sont admises :', @@ -159,6 +162,7 @@ $langStrings['it'] = array ( 'save_button' => 'Salva', 'access_host' => 'Per poter accedere alla risorsa sull\' host \'%s\' per favore selezioni o cerchi l\'organizzazione con la quale è affiliato.', 'select_idp' => 'Selezioni l\'organizzazione con la quale è affiliato.', +'search_idp' => 'Digitare il nome dell\'organizzazione con cui e\' affiliato.', 'remember_selection' => 'Ricorda la selezione per questa sessione.', 'additional_info' => 'SWITCH eroga servizi Internet innovativi e unici per le scuole universitarie svizzere e per gli utenti di Internet.', 'invalid_user_idp' => 'Errore nei parametri pervenuti.
Il valore del parametro \'%s\' non  valido.
Solo i seguenti valori sono ammessi:', -- GitLab