{assign var='__searchObjectTypeName' value='com.woltlab.wcf.article'}
{capture assign='__searchTypesScoped'}
- {if $category|isset}<li><a href="#" data-object-type="com.woltlab.wcf.article" data-parameters='{ "articleCategoryIDs[]": {@$category->categoryID} }'>{$category->getTitle()}</a></li>{/if}
+ {if $category|isset}<li><a href="#" data-extended-link="{link controller='Search'}types[]=com.woltlab.wcf.article{/link}" data-object-type="com.woltlab.wcf.article" data-parameters='{ "articleCategoryIDs[]": {@$category->categoryID} }'>{$category->getTitle()}</a></li>{/if}
{/capture}
{assign var='__searchAreaInitialized' value=true}
{/if}
<div class="pageHeaderSearchType dropdown">
<a href="#" class="button dropdownToggle">{@$__searchTypeLabel}</a>
<ul class="dropdownMenu">
- <li><a href="#" data-object-type="everywhere">{lang}wcf.search.type.everywhere{/lang}</a></li>
+ <li><a href="#" data-extended-link="{link controller='Search'}{/link}" data-object-type="everywhere">{lang}wcf.search.type.everywhere{/lang}</a></li>
<li class="dropdownDivider"></li>
{hascontent}
{foreach from=$__wcf->getSearchEngine()->getAvailableObjectTypes() key=_searchObjectTypeName item=_searchObjectType}
{if $_searchObjectType->isAccessible()}
- <li><a href="#" data-object-type="{@$_searchObjectTypeName}">{lang}wcf.search.type.{@$_searchObjectTypeName}{/lang}</a></li>
+ <li><a href="#" data-extended-link="{link controller='Search'}types[]={@$_searchObjectTypeName}{/link}" data-object-type="{@$_searchObjectTypeName}">{lang}wcf.search.type.{@$_searchObjectTypeName}{/lang}</a></li>
{/if}
{/foreach}
<li class="dropdownDivider"></li>
- <li><a href="{@$__searchLink}">{lang}wcf.search.extended{/lang}</a></li>
+ <li><a class="pageHeaderSearchExtendedLink" href="{@$__searchLink}">{lang}wcf.search.extended{/lang}</a></li>
</ul>
</div>
var container = elById('pageHeaderSearchParameters');
container.innerHTML = '';
+ var extendedLink = elData(event.currentTarget, 'extended-link');
+ if (extendedLink) {
+ elBySel('.pageHeaderSearchExtendedLink').href = extendedLink;
+ }
+
var parameters = elData(event.currentTarget, 'parameters');
if (parameters) {
parameters = JSON.parse(parameters);