- +
" . $lang->goback, '', "id='backBtn' class='btn btn-secondary'");?> " . $lang->goback, "id='backBtn'", 'btn btn-secondary');?> doc->titlePlaceholder}' id='editorTitle' class='form-control' required");?> diff --git a/module/doc/view/doclist.html.php b/module/doc/view/doclist.html.php index 0538457ed6..1d0e142b4d 100644 --- a/module/doc/view/doclist.html.php +++ b/module/doc/view/doclist.html.php @@ -39,7 +39,8 @@ body {margin-bottom: 25px;}

-recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}";?> +recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}";?> +rawMethod == 'tablecontents') $vars = "type=$type&" . $vars;?>
@@ -51,13 +52,13 @@ body {margin-bottom: 25px;} - idAB, '', 'tableContents');?> + idAB);?> - - - - - + + + + + diff --git a/module/doc/view/lefttree.html.php b/module/doc/view/lefttree.html.php index 764e185d71..497b4e2519 100644 --- a/module/doc/view/lefttree.html.php +++ b/module/doc/view/lefttree.html.php @@ -366,9 +366,25 @@ $(function() { linkParams = linkParams.replace('%s', '&libID=' + libID + '&moduleID=' + moduleID); - if(config.currentModule == 'api') linkParams = linkParams.substring(1); + var methodName = ''; + if(config.currentModule == 'api') + { + methodName = 'index'; + linkParams = linkParams.substring(1); + } + else if(type == 'annex') + { + methodName = 'showFiles'; + linkParams = 'type=' + objectType + '&objectID=' + objectID; + } + else + { + methodName = objectType == 'custom' ? 'tableContents' : objectType + 'Space'; + linkParams = objectType == 'custom' ? 'type=custom&' + linkParams : linkParams; + } - location.href = type == 'annex' ? createLink(config.currentModule, 'showFiles', 'type=' + objectType + '&objectID=' + objectID) : createLink(config.currentModule, config.currentModule == 'api' ? 'index' : 'tableContents', linkParams); + + location.href = createLink(config.currentModule, methodName, linkParams); } $('body').on('click', function() diff --git a/module/doc/view/showfiles.html.php b/module/doc/view/showfiles.html.php index 69c30cfaff..167edca46d 100644 --- a/module/doc/view/showfiles.html.php +++ b/module/doc/view/showfiles.html.php @@ -12,7 +12,6 @@ ?> -doc);?> diff --git a/module/doc/view/tablecontents.html.php b/module/doc/view/tablecontents.html.php index 9843367286..93d6e470f3 100644 --- a/module/doc/view/tablecontents.html.php +++ b/module/doc/view/tablecontents.html.php @@ -12,7 +12,7 @@ ?> - +doc);?> @@ -21,8 +21,9 @@ doc->featureBar['tableContents'] as $barType => $barName):?> - - createLink('doc', 'tableContents', "type=$type&objectID=$objectID&libID=$libID&moduleID=$moduleID&browseType=$barType"), $barName, '', "class='btn btn-link $active' id='{$barType}Tab'");?> + + rawMethod == 'tablecontents' ? "type=$type&objectID=$objectID&libID=$libID&moduleID=$moduleID&browseType=$barType": "objectID=$objectID&libID=$libID&moduleID=$moduleID&browseType=$barType";?> + createLink('doc', $app->rawMethod, $linkParams), $barName, '', "class='btn btn-link $active' id='{$barType}Tab'");?> doc->searchDoc;?>
doc->title, '', 'tableContents');?>doc->addedByAB, '', 'tableContents');?>doc->addedDate, '', 'tableContents');?>doc->editedBy, '', 'tableContents');?>doc->editedDate, '', 'tableContents');?>doc->title);?>doc->addedByAB);?>doc->addedDate);?>doc->editedBy);?>doc->editedDate);?> actions;?>