How to reproduce it :
<xsl:if test="/search/pagination/@total > 1"> <xsl:if test="/search/pagination/@total > 1"> <div class="more-result more-result-link" data-ametys-search-role="show-more"> <div> <a> <xsl:attribute name="onclick"> <xsl:call-template name="search-js-next-page"> <xsl:with-param name="callback-function">function() { $j('.hitspage:last()').slideDown() } </xsl:with-param> </xsl:call-template> </xsl:attribute> <i18n:text i18n:key="SKIN_SERVICE_SEARCH_VIEW_MORE_RESULTS" i18n:catalogue="skin.{$skin}"/> </a> </div> <span class="icon-chevron"></span> </div> </xsl:if>
To correct it : add line 427 of plugins/web/resources/js/search/SearchService.js
callback: config.callback
- Référence
-
CMS-9822 [Search service v2] Allow to provide a callback for JS calls
- Closed