Modifications pour le document AdminLocalizationSheet

Modifié par Florent Charton le 2024/08/08 18:43

Depuis la version 2.1
modifié par Florent Charton
sur 2024/08/08 18:43
Commentaire de modification : Install extension [org.xwiki.platform:xwiki-platform-administration-ui/15.10.11]
À la version 1.1
modifié par superadmin
sur 2022/06/20 08:48
Commentaire de modification : Install extension [org.xwiki.platform:xwiki-platform-administration-ui/13.10.6]

Résumé

Détails

Propriétés de la Page
Auteur du document
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.fcharton
1 +XWiki.superadmin
XWiki.JavaScriptExtension[0]
Code
... ... @@ -1,9 +7,3 @@
1 -define('xwiki-administration-localization', {
2 - prefix: 'XWiki.',
3 - keys: [
4 - 'XWikiPreferences_languages'
5 - ]
6 -});
7 7  /**
8 8   * Replace the simple text input field for supported locales by a nicer select widget with all available locales
9 9   * ready to be selected.
... ... @@ -14,14 +14,12 @@
14 14   *
15 15   * We also enable the improved select widget on the "timezone" field to make the user able to filter the choices.
16 16   */
17 -require(['jquery', 'xwiki-l10n!xwiki-administration-localization', 'xwiki-locale-picker'], function($, l10n) {
11 +require(['jquery', 'xwiki-locale-picker'], function($) {
18 18   'use strict';
19 19  
20 20   $('input[name="XWiki.XWikiPreferences_0_languages"]').localePicker({
21 21   allowEmpty: false,
22 - multiple: true,
23 - label: l10n.get('XWikiPreferences_languages'),
24 - hint: true
16 + multiple: true
25 25   });
26 26  
27 27   $('input[name="XWiki.XWikiPreferences_0_default_language"]').localePicker({
XWiki.StyleSheetExtension[0]
Mode de mise en cache
... ... @@ -1,1 +1,0 @@
1 -long
Code
... ... @@ -1,6 +1,0 @@
1 -/* Do not display the supported language field (we assume it's the following one)
2 - when the multilingual option is set to No. */
3 -form#localization dd:has(> div.dropdown > select[name="XWiki.XWikiPreferences_0_multilingual"] > option[value="0"]:checked) + dt,
4 -form#localization dd:has(> div.dropdown > select[name="XWiki.XWikiPreferences_0_multilingual"] > option[value="0"]:checked) + dt + dd {
5 - display: none;
6 -}
Utiliser cette extension
... ... @@ -1,1 +1,0 @@
1 -currentPage