[前端]重新修改添加比赛中测试用例的上传方式,修复了bug,还没有写ajax上传比赛信息的部分,因为没有API[CI SKIP]
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
define("uploader", ["webuploader", "csrf"], function(webuploader,csrf){
|
||||
function uploader(selector, server, onSuccess) {
|
||||
function uploader(selector, server, onSuccess, beforeUpload) {
|
||||
var Webuploader= webuploader.create({
|
||||
auto: true,
|
||||
// swf文件路径
|
||||
@@ -15,7 +15,7 @@ define("uploader", ["webuploader", "csrf"], function(webuploader,csrf){
|
||||
});
|
||||
Webuploader.on("uploadBeforeSend",csrf);
|
||||
Webuploader.on("uploadSuccess", onSuccess);
|
||||
|
||||
Webuploader.on("beforeFileQueued", beforeUpload);
|
||||
return Webuploader;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user