[前端]重新修改添加比赛中测试用例的上传方式,修复了bug,还没有写ajax上传比赛信息的部分,因为没有API[CI SKIP]

This commit is contained in:
esp
2015-08-11 19:43:23 +08:00
parent 381f623a9c
commit e089a550cc
4 changed files with 44 additions and 29 deletions

View File

@@ -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;
}