N°1226: code refactoring of the previously coded bugfix.

SVN:trunk[5793]
This commit is contained in:
Bruno Da Silva
2018-05-16 08:07:00 +00:00
parent 703a432f7b
commit 65fb29a1d4

View File

@@ -942,10 +942,7 @@ EOF
// Render the text of the global search form
$sText = htmlentities(utils::ReadParam('text', '', false, 'raw_data'), ENT_QUOTES, 'UTF-8');
$sOnClick = " onclick=\"if ($('#global-search-input').val() != '') { $('#global-search form').submit(); } \"";
$sDefaultPlaceHolder = '';
if (empty($sText)) {
$sDefaultPlaceHolder = Dict::S("UI:YourSearch");
}
$sDefaultPlaceHolder = Dict::S("UI:YourSearch");
if ($this->IsPrintableVersion()) {
$sHtml .= ' <!-- Beginning of page content -->';