 				modalAlert('网络错误', '报名表上传失败。请确认网络链接正常，或向我们反馈')
 		xhr.onerror = ->
 			modalAlert('网络错误', '报名表上传失败。请确认网络链接正常，或向我们反馈')
-		xhr.addEventListener('progress', updateModelProgress)
+		xhr.upload.addEventListener('progress', updateModelProgress)
 		xhr.send(form)
 
 	initModalProgress()

				modalAlert('网络错误', '照片上传失败。请确认网络链接正常，或向我们反馈')
		xhr.onerror = ->
			modalAlert('网络错误', '照片上传失败。请确认网络链接正常，或向我们反馈')
		xhr.addEventListener('progress', updateModelProgress)
		xhr.send(form)

	submitApply = ->



	$('#form1').form(form1Rule, {
		inline : true
		on: 'blur'
		keyboardShortcuts: false
	})

	$('#form2').form(form2Rule, {
		inline : true
		on: 'blur'
		keyboardShortcuts: false
	})

	$('#avatar > input.select').change ->
