* Finish task#7771.

This commit is contained in:
leiyong
2020-09-01 10:38:18 +08:00
parent d2f93f5a7f
commit 88abcc7930
2 changed files with 44 additions and 46 deletions
+11 -5
View File
@@ -52,18 +52,24 @@ include 'chosen.html.php';
</header>
<?php endif;?>
<?php if(isset($this->config->qcVersion)):?>
<script>
$("#userMenu").append('<button class="btn btn-mini" type="button" id="showSearchGo" style="padding: 2px 3px;"><i class="icon icon-sm icon-search"></i></button>');
$("#searchbox").hide();
$("#showSearchGo").on("click", function(){$("#searchbox").show(); $("#showSearchGo").hide();});
$("#showSearchGo").on("click", function()
{
$("#searchbox").show();
$("#showSearchGo").hide();
});
$("#searchInput").mouseout(function()
{
var searchValue = $("#searchInput").val();
if(searchValue == ''){$("#searchbox").hide(); $("#showSearchGo").show()};
if(searchValue == '')
{
$("#searchbox").hide();
$("#showSearchGo").show();
}
});
</script>
<?php endif;?>
<main id='main' <?php if(!empty($config->sso->redirect)) echo "class='ranzhiFixedTfootAction'";?> >
<div class='container'>