Skip to content

Commit

Permalink
[BUGFIX] If search button is clicked (in header-top or main-navigatio…
Browse files Browse the repository at this point in the history
…n) before js is loaded, user is sent to index-page. Similar fix for language-menu-btn. Removal of double attribute (data-search) in tag. (#509)
  • Loading branch information
pxamike authored and dmh committed Apr 15, 2019
1 parent 9bf7fd3 commit a7142b3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@
</f:if>

<div class="main-navigation__search-btn-wrp _header-top-search-btn">
<a class="main-navigation__search-btn js__main-navigation__search-btn" href="">{s:translate(key:'submit',default:'Search')}<span></span></a>
<a class="main-navigation__search-btn js__main-navigation__search-btn" href="#">{s:translate(key:'submit',default:'Search')}<span></span></a>
</div>
<div class="main-navigation__search-box _header-top-search-btn js__main-navigation__search-box" >
<input type="search" id="inputText" class="tx-solr-q js-solr-q" name="{pluginNamespace}[q]" value="{q}" placeholder="{s:translate(key:'submit',default:'Search')}" data-search="searchSuggest" data-search="searchSuggest" />
<input type="search" id="inputText" class="tx-solr-q js-solr-q" name="{pluginNamespace}[q]" value="{q}" placeholder="{s:translate(key:'submit',default:'Search')}" data-search="searchSuggest" />
</div>

</s:searchForm>

<s:debug.query />
</div>

</f:section>
</f:section>
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</f:if>

<div class="main-navigation__search-btn-wrp">
<a class="main-navigation__search-btn js__main-navigation__search-btn" href="">{s:translate(key:'submit',default:'Search')}<span></span></a>
<a class="main-navigation__search-btn js__main-navigation__search-btn" href="#">{s:translate(key:'submit',default:'Search')}<span></span></a>
</div>
<div class="main-navigation__search-box js__main-navigation__search-box" >
<input type="search" id="inputText" name="{pluginNamespace}[q]" value="{q}" placeholder="{s:translate(key:'submit',default:'Search')}" data-search="searchSuggest" />
Expand All @@ -23,4 +23,4 @@
<s:debug.query />
</div>

</f:section>
</f:section>
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="header-top__language-menu">
<f:for each="{languages}" as="language">
<f:if condition="{language.active}">
<a class="header-top__language-menu-btn js__header-top__language-menu-btn" href="/#">
<a class="header-top__language-menu-btn js__header-top__language-menu-btn" href="#">
<span class="main-flag-icon flag-icon flag-icon-{language.flagIdentifier}"></span>
<f:if condition="{theme:constant(constant:'themes.configuration.elem.status.showHeaderTopLangLabel')}">
<span class="main-flag-language flag-language">{f:translate(key:'languageMenu_label', extensionName:'ThemeT3kit')}</span>
Expand Down

0 comments on commit a7142b3

Please sign in to comment.