* Modify page locate.
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user