mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 04:31:32 +00:00
click on related documents works in onepage mode
This commit is contained in:
parent
52d958afc8
commit
a424268514
|
@ -82,6 +82,7 @@ if($view) {
|
||||||
$view->setParam('currenttab', isset($_GET['currenttab']) ? $_GET['currenttab'] : "");
|
$view->setParam('currenttab', isset($_GET['currenttab']) ? $_GET['currenttab'] : "");
|
||||||
$view->setParam('timeout', $settings->_cmdTimeout);
|
$view->setParam('timeout', $settings->_cmdTimeout);
|
||||||
$view->setParam('xsendfile', $settings->_enableXsendfile);
|
$view->setParam('xsendfile', $settings->_enableXsendfile);
|
||||||
|
$view->setParam('onepage', $settings->_onePageMode); // do most navigation by reloading areas of pages with ajax
|
||||||
$view($_GET);
|
$view($_GET);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
|
@ -183,6 +183,7 @@ 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()) {
|
||||||
|
@ -193,6 +194,9 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
||||||
}
|
}
|
||||||
$this->printDocumentChooserJs("form1");
|
$this->printDocumentChooserJs("form1");
|
||||||
$this->printDeleteDocumentButtonJs();
|
$this->printDeleteDocumentButtonJs();
|
||||||
|
if($onepage) {
|
||||||
|
$this->printClickDocumentJs();
|
||||||
|
}
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
function documentInfos() { /* {{{ */
|
function documentInfos() { /* {{{ */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user