* finish task#1324.

* set transition=none for colorbox of file-edit.
This commit is contained in:
chencongzhi520@gmail.com
2013-04-10 05:54:08 +00:00
parent c166bd3332
commit b8a6dd275f
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -12,7 +12,7 @@
$lang->file = new stdclass();
$lang->file->common = '附件';
$lang->file->download = '下载附件';
$lang->file->edit = '编辑附件名称';
$lang->file->edit = '重命名';
$lang->file->inputFileName = '请输入附件名称';
$lang->file->delete = '删除附件';
$lang->file->export2CSV = '导出CSV';
+2 -2
View File
@@ -5,7 +5,7 @@ $sessionString .= session_name() . '=' . session_id();
<style>.button-c {padding:1px}</style>
<script language='Javascript'>
$(function(){
$(".edit").colorbox({width:400, height:200, iframe:true, transition:'elastic', speed:350, scrolling:true});
$(".edit").colorbox({width:400, height:200, iframe:true, transition:'none', scrolling:true});
})
/* Delete a file. */
@@ -33,7 +33,7 @@ function downloadFile(fileID)
foreach($files as $file)
{
if(common::hasPriv('file', 'download')) echo html::a($this->createLink('file', 'download', "fileID=$file->id") . $sessionString, $file->title .'.' . $file->extension, '_blank', "onclick='return downloadFile($file->id)'");
common::printLink('file', 'edit', "fileID=$file->id", $lang->edit, '', "class='edit'");
common::printLink('file', 'edit', "fileID=$file->id", $lang->file->edit, '', "class='edit'");
if(common::hasPriv('file', 'delete')) echo html::commonButton(' x ', "onclick='deleteFile($file->id)'");
}
?>