From 8d40a45d1e405a200ec2993d06caccfb09c925b4 Mon Sep 17 00:00:00 2001
From: Li Jianxuan
Date: Mon, 7 Nov 2011 02:46:35 +0000
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86uploadify=E7=9A=84?=
=?UTF-8?q?=E9=94=99=E8=AF=AF=E8=B0=83=E8=AF=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../default/views/scripts/review/review.phtml | 26 ++++++++++---------
1 file changed, 14 insertions(+), 12 deletions(-)
diff --git a/application/default/views/scripts/review/review.phtml b/application/default/views/scripts/review/review.phtml
index 7cde7792..f99c0c58 100755
--- a/application/default/views/scripts/review/review.phtml
+++ b/application/default/views/scripts/review/review.phtml
@@ -25,11 +25,11 @@
',$md['description']);?>
- [元数据查看]
- [PDF版本下载]
- [ODT版本下载]
- [DOC版本下载]
- [XML源文件查看]
+ [元数据查看]
+ [PDF版本下载]
+ [ODT版本下载]
+ [DOC版本下载]
+ [XML源文件查看]
[元数据评审说明]
@@ -83,7 +83,7 @@
-
+
查看可上传的附件类型
'doc', 'docx', 'xls', 'xlsx', 'ppt', 'htm', 'html', 'txt', 'zip', 'rar', 'gz', 'bz2','gif', 'jpg', 'jpeg', 'png', 'bmp', 'pdf'
@@ -188,7 +188,7 @@ $(document).ready(function() {
$('#file_upload').uploadify({
'uploader' : '/static/js/uploadify/uploadify.swf',
- 'scriptData' : {'PHPSESSID' : ''},
+ 'scriptData': {'PHPSESSID' : ''},
'script' : '/upload',
'cancelImg' : '/static/js/uploadify/cancel.png',
'folder' : '/uploads',
@@ -200,11 +200,7 @@ $(document).ready(function() {
var obj = jQuery.parseJSON(response);
var html;
if(obj.error=='')
- {
- html = obj.html;
- }else{
- html = obj.error;
- }
+ {html = obj.html;}else{html = obj.error;}
$('', {
"id":'uploadedItem_'+obj.attid,
"class":'uploadifyQueueItem',
@@ -213,6 +209,9 @@ $(document).ready(function() {
$('#deletebtn_'+obj.attid).bind('click', function() {
deleteatt(obj.attid);
});
+ },
+ 'onError' : function (event,ID,fileObj,errorObj) {
+ alert(errorObj.type + ' Error: ' + errorObj.info);
}
});
@@ -245,6 +244,9 @@ $(document).ready(function() {
});
}
});
+ function checkfiles(rid){
+ alert(rid);
+ }
});