mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 05:31:42 +00:00
collapse search form after searching
This commit is contained in:
parent
6542972a12
commit
0142de1c03
|
@ -63,6 +63,12 @@ class SeedDMS_View_Search extends SeedDMS_Theme_Style {
|
||||||
/* Add js for catching click on document in one page mode */
|
/* Add js for catching click on document in one page mode */
|
||||||
$this->printClickDocumentJs();
|
$this->printClickDocumentJs();
|
||||||
$this->printClickFolderJs();
|
$this->printClickFolderJs();
|
||||||
|
?>
|
||||||
|
$(document).ready(function() {
|
||||||
|
$('body').on('submit', '#form1', function(ev){
|
||||||
|
});
|
||||||
|
});
|
||||||
|
<?php
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
function opensearchsuggestion() { /* {{{ */
|
function opensearchsuggestion() { /* {{{ */
|
||||||
|
@ -167,8 +173,10 @@ function typeahead() { /* {{{ */
|
||||||
|
|
||||||
$this->rowStart();
|
$this->rowStart();
|
||||||
$this->columnStart(4);
|
$this->columnStart(4);
|
||||||
$this->contentHeading(getMLText('search'));
|
$this->contentHeading("<button class=\"btn btn-primary\" id=\"searchform-toggle\" data-toggle=\"collapse\" href=\"#searchform\"><i class=\"fa fa-exchange\"></i></button> ".getMLText('search'), true);
|
||||||
//echo "<pre>";print_r($_GET);echo "</pre>";
|
if($this->query) {
|
||||||
|
echo "<div id=\"searchform\" class=\"collapse mb-sm-4\">";
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
<ul class="nav nav-pills" id="searchtab">
|
<ul class="nav nav-pills" id="searchtab">
|
||||||
<li class="nav-item <?php echo ($fullsearch == false) ? 'active' : ''; ?>"><a class="nav-link <?php echo ($fullsearch == false) ? 'active' : ''; ?>" data-target="#database" data-toggle="tab"><?php printMLText('databasesearch'); ?></a></li>
|
<li class="nav-item <?php echo ($fullsearch == false) ? 'active' : ''; ?>"><a class="nav-link <?php echo ($fullsearch == false) ? 'active' : ''; ?>" data-target="#database" data-toggle="tab"><?php printMLText('databasesearch'); ?></a></li>
|
||||||
|
@ -517,6 +525,7 @@ foreach($facets as $facetname=>$values) {
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
|
echo "</div>";
|
||||||
$this->columnEnd();
|
$this->columnEnd();
|
||||||
$this->columnStart(8);
|
$this->columnStart(8);
|
||||||
$this->contentHeading(getMLText('search_results'));
|
$this->contentHeading(getMLText('search_results'));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user