Changes for page SolrDateFacet

Last modified by Administrator on 2024/02/03 10:14

From version 3.1
edited by Administrator
on 2020/12/29 00:17
Change comment: Install extension [org.xwiki.platform:xwiki-platform-search-solr-ui/12.10.2]
To version 4.1
edited by Administrator
on 2022/12/28 19:36
Change comment: Install extension [org.xwiki.platform:xwiki-platform-search-solr-ui/14.10.2]

Summary

Details

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)