add search query in search input
authorjoshuaruesweg <josh@joshsboard.de>
Tue, 29 Jul 2014 09:10:32 +0000 (11:10 +0200)
committerjoshuaruesweg <josh@joshsboard.de>
Tue, 29 Jul 2014 09:10:32 +0000 (11:10 +0200)
com.woltlab.wcf/templates/searchArea.tpl

index 0477b56a3938feb642ec46b9980a247d4d32af48..bc32f94da2b9a1afcb6e84a27c0d011d82361bb8 100644 (file)
@@ -7,7 +7,7 @@
 
 <aside id="search" class="searchBar dropdown" data-disable-auto-focus="true">
        <form method="post" action="{@$__searchFormLink}">
-               <input type="search" name="q" placeholder="{@$__searchInputPlaceholder}" autocomplete="off" required="required" value="" class="dropdownToggle" data-toggle="search" />
+               <input type="search" name="q" placeholder="{@$__searchInputPlaceholder}" autocomplete="off" required="required" value="{if $query|isset}{$query}{/if}" class="dropdownToggle" data-toggle="search" />
                
                <ul class="dropdownMenu">
                        {hascontent}