* Add locate params.
This commit is contained in:
@@ -1317,6 +1317,7 @@ class doc extends control
|
||||
$this->view->libType = $libType;
|
||||
$this->view->pager = $pager;
|
||||
$this->view->objectID = $objectID;
|
||||
$this->view->orderBy = $orderBy;
|
||||
|
||||
$this->display();
|
||||
}
|
||||
|
||||
@@ -119,19 +119,21 @@ $(function()
|
||||
{
|
||||
var isLib = $(this).hasClass('lib');
|
||||
var moduleID = $(this).data('id');
|
||||
var libID = 0;
|
||||
var params = '';
|
||||
|
||||
if(isLib)
|
||||
{
|
||||
if($(this).data('type') == 'annex') return false;
|
||||
|
||||
linkParams += '&libID=' + moduleID;
|
||||
moduleID = 0;
|
||||
libID = moduleID;
|
||||
moduleID = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
var libID = $(this).closest('.lib').data('id');
|
||||
linkParams += '&libID=' + libID + '&moduleID=' + moduleID;
|
||||
libID = $(this).closest('.lib').data('id');
|
||||
}
|
||||
linkParams = linkParams.replace('%s', '&libID=' + libID + '&moduleID=' + moduleID);
|
||||
location.href = createLink('doc', 'tableContents', linkParams);
|
||||
});
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php js::set('treeData', $libTree);?>
|
||||
<?php js::set('linkParams', "type=$type&objectID=$objectID");?>
|
||||
<?php js::set('linkParams', "type=$type&objectID=$objectID%s&browseType=$browseType&orderBy=$orderBy");?>
|
||||
<?php js::set('docLang', $lang->doc);?>
|
||||
<div id="mainMenu" class="clearfix">
|
||||
<div id="leftBar" class="btn-toolbar pull-left">
|
||||
|
||||
Reference in New Issue
Block a user