From 5a62c6baa6ee90af6b4f22cd40276e3fbd8f062e Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Mon, 29 Aug 2016 11:43:05 +0200 Subject: [PATCH] Current type is now carried over to the extended search --- com.woltlab.wcf/templates/pageHeaderSearch.tpl | 8 ++++---- .../install/files/js/WoltLabSuite/Core/Ui/Search/Page.js | 5 +++++ 2 files changed, 9 insertions(+), 4 deletions(-) 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); -- 2.20.1