Modifications pour le document SolrDateFacet

Modifié par Florent Charton le 2026/01/13 15:01

Depuis la version 1.1
modifié par superadmin
sur 2022/06/20 08:49
Commentaire de modification : Install extension [org.xwiki.platform:xwiki-platform-search-solr-ui/13.10.6]
À la version 3.1
modifié par Florent Charton
sur 2026/01/13 15:01
Commentaire de modification : Install extension [org.xwiki.platform:xwiki-platform-search-solr-ui/17.10.2]

Résumé

Détails

Propriétés de la Page
Auteur du document
... ... @@ -1,1 +1,1 @@
1 -XWiki.superadmin
1 +xwiki:XWiki.fcharton
XWiki.JavaScriptExtension[0]
Code
... ... @@ -4,7 +4,8 @@
4 4   var form = $(this).find('form').hide();
5 5  
6 6   // Toggle the form when the user selects the corresponding option. We pass null to prevent animation.
7 - $(this).find('.itemName').prev('input[type="checkbox"]').removeClass('hidden').click($.proxy(form, 'toggle', null));
7 + $(this).find('.itemName').prev('input[type="checkbox"]').removeClass('hidden')
8 + .on('click', form.toggle.bind(form, null));
8 8  
9 9   // Use the client TimeZone when searching and displaying dates on the server.
10 10   // Note that we change the sign because Date#getTimezoneOffset() returns (UTC - local time)
XWiki.StyleSheetExtension[0]
Code
... ... @@ -1,5 +1,5 @@
1 1  .search-facet-body .customDateInterval label {
2 - display: block;
2 + display: flex;
3 3  }
4 4  .search-facet-body .customDateInterval .itemName {
5 5   cursor: pointer;
... ... @@ -6,6 +6,9 @@
6 6  }
7 7  .search-facet-body .customDateInterval form {
8 8   margin-top: .5em;
9 + /* We want the form to stay on its own flex line no matter how much space is provided. */
10 + width: 80%;
11 + margin-left: 16px;
9 9  }
10 10  .search-facet-body .customDateInterval dl {
11 11   margin: 0;