mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 13:18:06 +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 */ | ||||
| 		$this->printClickDocumentJs(); | ||||
| 		$this->printClickFolderJs(); | ||||
| ?>
 | ||||
| $(document).ready(function() { | ||||
| 	$('body').on('submit', '#form1', function(ev){ | ||||
| 	}); | ||||
| }); | ||||
| <?php | ||||
| 	} /* }}} */ | ||||
| 
 | ||||
| 		function opensearchsuggestion() { /* {{{ */ | ||||
|  | @ -167,8 +173,10 @@ function typeahead() { /* {{{ */ | |||
| 
 | ||||
| 		$this->rowStart(); | ||||
| 		$this->columnStart(4); | ||||
| 		$this->contentHeading(getMLText('search')); | ||||
| //echo "<pre>";print_r($_GET);echo "</pre>";
 | ||||
| 		$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); | ||||
| 		if($this->query) { | ||||
| 		echo "<div id=\"searchform\" class=\"collapse mb-sm-4\">"; | ||||
| 		} | ||||
| ?>
 | ||||
|   <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>
 | ||||
|  | @ -517,6 +525,7 @@ foreach($facets as $facetname=>$values) { | |||
| ?>
 | ||||
| 	</div> | ||||
| <?php | ||||
| 		echo "</div>"; | ||||
| 		$this->columnEnd(); | ||||
| 		$this->columnStart(8); | ||||
| 		$this->contentHeading(getMLText('search_results')); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann