From: Marcel Werk Date: Mon, 29 Aug 2016 09:43:05 +0000 (+0200) Subject: Current type is now carried over to the extended search X-Git-Tag: 3.0.0_Beta_1~420 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5a62c6baa6ee90af6b4f22cd40276e3fbd8f062e;p=GitHub%2FWoltLab%2FWCF.git Current type is now carried over to the extended search --- diff --git a/com.woltlab.wcf/templates/pageHeaderSearch.tpl b/com.woltlab.wcf/templates/pageHeaderSearch.tpl index 9948a5599a..739d783b18 100644 --- a/com.woltlab.wcf/templates/pageHeaderSearch.tpl +++ b/com.woltlab.wcf/templates/pageHeaderSearch.tpl @@ -13,7 +13,7 @@ {assign var='__searchObjectTypeName' value='com.woltlab.wcf.article'} {capture assign='__searchTypesScoped'} - {if $category|isset}
  • {$category->getTitle()}
  • {/if} + {if $category|isset}
  • {$category->getTitle()}
  • {/if} {/capture} {assign var='__searchAreaInitialized' value=true} {/if} @@ -32,7 +32,7 @@ diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Search/Page.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Search/Page.js index 70ae1b6d81..26659ee010 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Search/Page.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Search/Page.js @@ -51,6 +51,11 @@ define(['Core', 'Dom/Traverse', 'Dom/Util', 'Ui/SimpleDropdown', './Input'], fun 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);