mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 05:01:43 +00:00
support one page mode on search page
This commit is contained in:
parent
975c6cb147
commit
13b7de9c60
|
@ -438,7 +438,7 @@ if($settings->_showSingleSearchHit && count($entries) == 1) {
|
||||||
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user, 'query'=>$query, 'searchhits'=>$entries, 'totalpages'=>$totalPages, 'pagenumber'=>$pageNumber, 'searchtime'=>$searchTime, 'urlparams'=>$_GET, 'cachedir'=>$settings->_cacheDir));
|
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user, 'query'=>$query, 'searchhits'=>$entries, 'totalpages'=>$totalPages, 'pagenumber'=>$pageNumber, 'searchtime'=>$searchTime, 'urlparams'=>$_GET, 'cachedir'=>$settings->_cacheDir));
|
||||||
if($view) {
|
if($view) {
|
||||||
$view->setParam('accessobject', $accessop);
|
$view->setParam('accessobject', $accessop);
|
||||||
$view->setParam('onepage', false); // do most navigation by reloading areas of pages with ajax
|
$view->setParam('onepage', $settings->_onePageMode); // do most navigation by reloading areas of pages with ajax
|
||||||
$view->setParam('showtree', showtree());
|
$view->setParam('showtree', showtree());
|
||||||
$view->setParam('enableRecursiveCount', $settings->_enableRecursiveCount);
|
$view->setParam('enableRecursiveCount', $settings->_enableRecursiveCount);
|
||||||
$view->setParam('maxRecursiveCount', $settings->_maxRecursiveCount);
|
$view->setParam('maxRecursiveCount', $settings->_maxRecursiveCount);
|
||||||
|
|
|
@ -60,6 +60,9 @@ class SeedDMS_View_Search extends SeedDMS_Bootstrap_Style {
|
||||||
$this->printFolderChooserJs("form1");
|
$this->printFolderChooserJs("form1");
|
||||||
$this->printDeleteFolderButtonJs();
|
$this->printDeleteFolderButtonJs();
|
||||||
$this->printDeleteDocumentButtonJs();
|
$this->printDeleteDocumentButtonJs();
|
||||||
|
/* Add js for catching click on document in one page mode */
|
||||||
|
$this->printClickDocumentJs();
|
||||||
|
$this->printClickFolderJs();
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
function show() { /* {{{ */
|
function show() { /* {{{ */
|
||||||
|
|
|
@ -183,7 +183,6 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
||||||
$dms = $this->params['dms'];
|
$dms = $this->params['dms'];
|
||||||
$user = $this->params['user'];
|
$user = $this->params['user'];
|
||||||
$document = $this->params['document'];
|
$document = $this->params['document'];
|
||||||
$onepage = $this->params['onepage'];
|
|
||||||
|
|
||||||
header('Content-Type: application/javascript');
|
header('Content-Type: application/javascript');
|
||||||
if($user->isAdmin()) {
|
if($user->isAdmin()) {
|
||||||
|
@ -194,9 +193,8 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
||||||
}
|
}
|
||||||
$this->printDocumentChooserJs("form1");
|
$this->printDocumentChooserJs("form1");
|
||||||
$this->printDeleteDocumentButtonJs();
|
$this->printDeleteDocumentButtonJs();
|
||||||
if($onepage) {
|
/* Add js for catching click on document in one page mode */
|
||||||
$this->printClickDocumentJs();
|
$this->printClickDocumentJs();
|
||||||
}
|
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
function documentInfos() { /* {{{ */
|
function documentInfos() { /* {{{ */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user