* Modify page locate.

This commit is contained in:
caoyanyi
2023-03-29 14:57:50 +08:00
parent 0f6795563d
commit 547349cf35
3 changed files with 10 additions and 9 deletions
+2 -1
View File
@@ -107,7 +107,8 @@
<?php else:?>
<div class="cell main-col" data-min-width="400">
<div class="detail base-url">
<p><?php echo $lang->api->baseUrl . ': ' . $lib->baseUrl;?></p>
<?php $delimiter = strpos($app->clientLang, 'zh') === 0 ? ':' : ': ';?>
<p><?php echo $lang->api->baseUrl . $delimiter . $lib->baseUrl;?></p>
</div>
<div class="detail">
<ul class="list-group">
-7
View File
@@ -322,12 +322,5 @@ $(function()
}).on('keydown', '.file-tree input.input-tree', function(e)
{
if(e.keyCode == 13) $(this).trigger('blur');
}).on('click', '#mainMenu .btn-toolbar a, .no-content-button a', function()
{
if(libType == 'api')
{
$.cookie('objectType', objectType, {expires: config.cookieLife, path: config.webRoot});
$.cookie('objectID', objectID, {expires: config.cookieLife, path: config.webRoot});
}
});
});
+8 -1
View File
@@ -36,7 +36,14 @@
echo html::a(helper::createLink('doc', 'createLib', "type=$type&objectID=$objectID"), '<i class="icon icon-plus"></i> ' . $this->lang->doc->createLib, '', 'class="btn btn-secondary iframe" data-width="800px"');
}
if($libID and common::hasPriv('doc', 'create')) echo $this->doc->printCreateBtn($lib, $type, $objectID, $moduleID, $apiLibID);
if($libType == 'api')
{
if(common::hasPriv('api', 'create')) echo html::a($this->createLink('api', 'create', "libID=$libID&moduleID=$moduleID", '', true), '<i class="icon icon-plus"></i> ' . $lang->api->createApi, '', 'class="btn btn-primary iframe" data-width="95%"');
}
elseif($libID and common::hasPriv('doc', 'create'))
{
echo $this->doc->printCreateBtn($lib, $type, $objectID, $moduleID, $apiLibID);
}
?>
</div>
</div>