* Fix doc fullscreen.
This commit is contained in:
+13
-2
@@ -1,9 +1,20 @@
|
||||
$(function()
|
||||
{
|
||||
$('#urlIframe').height($('#mainContent').height() - 35);
|
||||
$('#mainMenu .fullscreen-btn').click(function()
|
||||
$('body').addClass('doc-fullscreen');
|
||||
$('#mainContent .fullscreen-btn').attr('title', reset);
|
||||
setTimeout($.resetToolbarPosition, 50);
|
||||
$('#mainContent .fullscreen-btn').click(function()
|
||||
{
|
||||
$('body').toggleClass('doc-fullscreen');
|
||||
setTimeout($.resetToolbarPosition, 250);
|
||||
if($('body').hasClass('doc-fullscreen'))
|
||||
{
|
||||
$('#mainContent .fullscreen-btn').attr('title', reset);
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#mainContent .fullscreen-btn').attr('title', fullscreen);
|
||||
}
|
||||
setTimeout($.resetToolbarPosition, 50);
|
||||
});
|
||||
})
|
||||
|
||||
@@ -59,6 +59,8 @@ $lang->doc->todayEdited = 'Update Today';
|
||||
$lang->doc->pastEdited = 'Updated';
|
||||
$lang->doc->myDoc = 'My Doc';
|
||||
$lang->doc->myCollection = 'My Favorite';
|
||||
$lang->doc->fullscreen = 'Full Screen';
|
||||
$lang->doc->reset = 'Reset';
|
||||
|
||||
/* 方法列表。*/
|
||||
$lang->doc->index = 'Doc Home';
|
||||
|
||||
@@ -46,6 +46,8 @@ $lang->doc->users = '用户';
|
||||
$lang->doc->item = '项';
|
||||
$lang->doc->num = '文档数量';
|
||||
$lang->doc->searchResult = '搜索结果';
|
||||
$lang->doc->fullscreen = '全屏';
|
||||
$lang->doc->reset = '恢复';
|
||||
|
||||
$lang->doc->moduleDoc = '按模块浏览';
|
||||
$lang->doc->searchDoc = '搜索';
|
||||
|
||||
@@ -14,6 +14,10 @@
|
||||
<?php include '../../common/view/kindeditor.html.php';?>
|
||||
<?php echo css::internal($keTableCSS);?>
|
||||
<?php $browseLink = $this->session->docList ? $this->session->docList : inlink('browse');?>
|
||||
<?php
|
||||
js::set('fullscreen', $lang->doc->fullscreen);
|
||||
js::set('reset', $lang->doc->reset);
|
||||
?>
|
||||
<div id="mainMenu" class="clearfix">
|
||||
<div class="btn-toolbar pull-left">
|
||||
<?php echo html::a($browseLink, "<i class='icon icon-back icon-sm'></i> " . $lang->goback, '', "class='btn btn-primary'");?>
|
||||
@@ -64,9 +68,6 @@
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btn-toolbar pull-right">
|
||||
<button type='button' class='btn fullscreen-btn'><i class='icon icon-fullscreen'></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<div id="mainContent" class="main-row">
|
||||
<div class="main-col col-8">
|
||||
@@ -128,6 +129,7 @@
|
||||
<div class='main-actions'>
|
||||
<div class="btn-toolbar">
|
||||
<?php common::printBack($browseLink);?>
|
||||
<button type='button' class='btn fullscreen-btn' title='<?php echo $lang->doc->fullscreen?>'><i class='icon icon-fullscreen'></i></button>
|
||||
<?php
|
||||
if(!$doc->deleted)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user