 	element.find('.label').text(header)
 
 updateModelProgress = (event)->
-	console.log 'here'
 	if event.lengthComputable
-		$('#progress .ui.progress').attr('data-percent', event.loaded / event.total)
+		$('#progress .ui.progress').progress
+			percent: 100 * event.loaded / event.total
 
 form1Rule =
 	name:

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

	submitApply = ->

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

	initModalProgress()
