改进附件上传文件过大情况
This commit is contained in:
+9
-16
@@ -1040,9 +1040,6 @@ a.operate-reply {
|
||||
list-style: none;
|
||||
padding: 0; }
|
||||
|
||||
#edit-secondary #tab-files {
|
||||
display: none; }
|
||||
|
||||
/**
|
||||
* 标签列表
|
||||
*/
|
||||
@@ -1112,17 +1109,19 @@ a.operate-reply {
|
||||
margin: 0 10px;
|
||||
padding: 0;
|
||||
word-break: break-all; }
|
||||
#file-list li {
|
||||
padding: 8px 0;
|
||||
border-top: 1px dashed #D9D9D6; }
|
||||
#file-list .file {
|
||||
margin-left: 5px; }
|
||||
#file-list li,
|
||||
#file-list .insert {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis; }
|
||||
#file-list li {
|
||||
padding: 8px 0;
|
||||
border-top: 1px dashed #D9D9D6; }
|
||||
#file-list .insert {
|
||||
display: block;
|
||||
max-width: 100%; }
|
||||
#file-list .file {
|
||||
margin-left: 5px; }
|
||||
#file-list .info {
|
||||
text-transform: uppercase; }
|
||||
|
||||
@@ -1429,12 +1428,6 @@ a.operate-reply {
|
||||
margin: 0;
|
||||
padding: 10px 20px;
|
||||
border-bottom: 1px solid #F3F3F0; }
|
||||
.fullscreen #tab-files {
|
||||
position: absolute;
|
||||
top: 52px;
|
||||
right: 20px;
|
||||
width: 280px;
|
||||
z-index: 1001; }
|
||||
.fullscreen .wmd-edittab,
|
||||
.fullscreen .typecho-post-option,
|
||||
.fullscreen .title,
|
||||
|
||||
@@ -808,9 +808,6 @@ background: #FFF1A8;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#edit-secondary {
|
||||
#tab-files { display: none; }
|
||||
}
|
||||
|
||||
/**
|
||||
* 标签列表
|
||||
@@ -880,19 +877,22 @@ background: #FFF1A8;
|
||||
margin: 0 10px;
|
||||
padding: 0;
|
||||
word-break: break-all;
|
||||
li,
|
||||
.insert {
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
li {
|
||||
padding: 8px 0;
|
||||
border-top: 1px dashed #D9D9D6;
|
||||
}
|
||||
.file {
|
||||
margin-left: 5px;
|
||||
}
|
||||
.insert {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.file {
|
||||
margin-left: 5px;
|
||||
}
|
||||
.info {
|
||||
text-transform: uppercase;
|
||||
|
||||
+6
-6
@@ -214,13 +214,13 @@ $(document).ready(function() {
|
||||
|
||||
// 控制选项和附件的切换
|
||||
var fileUploadInit = false;
|
||||
$("#edit-secondary .typecho-option-tabs li").click(function() {
|
||||
$("#edit-secondary .typecho-option-tabs li").removeClass('active');
|
||||
$(this).addClass("active");
|
||||
$(".tab-content").hide();
|
||||
$('#edit-secondary .typecho-option-tabs li').click(function() {
|
||||
$('#edit-secondary .typecho-option-tabs li').removeClass('active');
|
||||
$(this).addClass('active');
|
||||
$('.tab-content').addClass('hidden');
|
||||
|
||||
var selected_tab = $(this).find("a").attr("href"),
|
||||
selected_el = $(selected_tab).show();
|
||||
var selected_tab = $(this).find('a').attr('href'),
|
||||
selected_el = $(selected_tab).removeClass('hidden');
|
||||
|
||||
if (!fileUploadInit) {
|
||||
selected_el.trigger('init');
|
||||
|
||||
@@ -154,7 +154,7 @@ Typecho_Widget::widget('Widget_Contents_Post_Edit')->to($post);
|
||||
<?php endif; ?>
|
||||
</div><!-- end #tab-advance -->
|
||||
|
||||
<div id="tab-files" class="tab-content">
|
||||
<div id="tab-files" class="tab-content hidden">
|
||||
<?php include 'file-upload.php'; ?>
|
||||
</div><!-- end #tab-files -->
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user