修改数据浏览页面中文件列表不能打开的bug
This commit is contained in:
parent
e3e8548e3e
commit
2005bbb88e
|
@ -402,16 +402,6 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="window-outter" style="display:none;">
|
|
||||||
<div id="window-inner">
|
|
||||||
<div id="window-content-container">
|
|
||||||
<div id="window-loading">加载中...</div>
|
|
||||||
<ol id="file-list">
|
|
||||||
</ol>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="todownload" style="display:none;">
|
<div id="todownload" style="display:none;">
|
||||||
<div id="formcontent"></div>
|
<div id="formcontent"></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -477,7 +467,16 @@ function postcomment(){
|
||||||
|
|
||||||
|
|
||||||
function getFileList(){
|
function getFileList(){
|
||||||
$.colorbox({width:"80%",height:"80%",html:$('#window-outter').html()});
|
html ='<div id="window-outter">'
|
||||||
|
+ '<div id="window-inner">'
|
||||||
|
+ '<div id="window-content-container">'
|
||||||
|
+ '<div id="window-loading">加载中...</div>'
|
||||||
|
+ '<ol id="file-list">'
|
||||||
|
+ '</ol>'
|
||||||
|
+ '</div>'
|
||||||
|
+ '</div>'
|
||||||
|
+'</div>';
|
||||||
|
$.colorbox({width:"80%",height:"80%",html:html});
|
||||||
$.getJSON("/service/filelist/uuid/<?php echo $md->uuid;?>", function(data) {
|
$.getJSON("/service/filelist/uuid/<?php echo $md->uuid;?>", function(data) {
|
||||||
var items = [];
|
var items = [];
|
||||||
if(data.length>0)
|
if(data.length>0)
|
||||||
|
@ -495,7 +494,9 @@ function getFileList(){
|
||||||
}
|
}
|
||||||
$('#file-list').html(items.join(''));
|
$('#file-list').html(items.join(''));
|
||||||
})
|
})
|
||||||
.complete(function() {$('#window-loading').hide();});
|
.complete(function() {
|
||||||
|
$('#window-loading').hide();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
function getSubFileList(uuid,id,depth){
|
function getSubFileList(uuid,id,depth){
|
||||||
if($("#div_"+id).length>0)
|
if($("#div_"+id).length>0)
|
||||||
|
|
Loading…
Reference in New Issue