click on related documents works in onepage mode

This commit is contained in:
Uwe Steinmann 2020-02-28 08:28:58 +01:00
parent 52d958afc8
commit a424268514
2 changed files with 5 additions and 0 deletions

View File

@ -82,6 +82,7 @@ if($view) {
$view->setParam('currenttab', isset($_GET['currenttab']) ? $_GET['currenttab'] : "");
$view->setParam('timeout', $settings->_cmdTimeout);
$view->setParam('xsendfile', $settings->_enableXsendfile);
$view->setParam('onepage', $settings->_onePageMode); // do most navigation by reloading areas of pages with ajax
$view($_GET);
exit;
}

View File

@ -183,6 +183,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
$dms = $this->params['dms'];
$user = $this->params['user'];
$document = $this->params['document'];
$onepage = $this->params['onepage'];
header('Content-Type: application/javascript');
if($user->isAdmin()) {
@ -193,6 +194,9 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
}
$this->printDocumentChooserJs("form1");
$this->printDeleteDocumentButtonJs();
if($onepage) {
$this->printClickDocumentJs();
}
} /* }}} */
function documentInfos() { /* {{{ */