|  |  |  | @ -27,7 +27,10 @@ class Fileslistitem extends Component{ | 
			
		
	
		
			
				
					|  |  |  |  |         this.props.Settingtypes(discussMessage.id) | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     showfiles=(value)=>{ | 
			
		
	
		
			
				
					|  |  |  |  |     showfiles=(list)=>{ | 
			
		
	
		
			
				
					|  |  |  |  |     	if(list.is_history_file===false){ | 
			
		
	
		
			
				
					|  |  |  |  | 				this.props.DownloadFileA(list.title,list.url) | 
			
		
	
		
			
				
					|  |  |  |  | 			}else{ | 
			
		
	
		
			
				
					|  |  |  |  | 				let {discussMessage,coursesId}=this.props | 
			
		
	
		
			
				
					|  |  |  |  | 				let file_id=discussMessage.id | 
			
		
	
		
			
				
					|  |  |  |  | 				let url="/files/"+file_id+"/histories.json" | 
			
		
	
	
		
			
				
					|  |  |  | @ -58,6 +61,8 @@ class Fileslistitem extends Component{ | 
			
		
	
		
			
				
					|  |  |  |  | 				}) | 
			
		
	
		
			
				
					|  |  |  |  | 			} | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     closaoldfilesprops=()=>{ | 
			
		
	
		
			
				
					|  |  |  |  |         this.setState({ | 
			
		
	
		
			
				
					|  |  |  |  |             Showoldfiles:false, | 
			
		
	
	
		
			
				
					|  |  |  | @ -191,13 +196,13 @@ class Fileslistitem extends Component{ | 
			
		
	
		
			
				
					|  |  |  |  | 											{ | 
			
		
	
		
			
				
					|  |  |  |  | 													this.props.isAdmin ? <a | 
			
		
	
		
			
				
					|  |  |  |  | 															// href={"/courses/" + coursesId + "/graduation/graduation_tasks/" + categoryid + "/" + taskid + "/list"}
 | 
			
		
	
		
			
				
					|  |  |  |  | 															onClick={()=>this.showfiles(discussMessage.title)} | 
			
		
	
		
			
				
					|  |  |  |  | 															onClick={()=>this.showfiles(discussMessage)} | 
			
		
	
		
			
				
					|  |  |  |  | 															title={discussMessage.title} | 
			
		
	
		
			
				
					|  |  |  |  | 															className="fl mt3 font-16 font-bd color-dark maxwidth580">{discussMessage.title}</a> : "" | 
			
		
	
		
			
				
					|  |  |  |  | 											} | 
			
		
	
		
			
				
					|  |  |  |  |                       { | 
			
		
	
		
			
				
					|  |  |  |  |                         this.props.isStudent?  <a | 
			
		
	
		
			
				
					|  |  |  |  |                           onClick={()=>this.showfiles(discussMessage.title)} | 
			
		
	
		
			
				
					|  |  |  |  |                           onClick={()=>this.showfiles(discussMessage)} | 
			
		
	
		
			
				
					|  |  |  |  |                           title={discussMessage.title} | 
			
		
	
		
			
				
					|  |  |  |  |                           className="fl mt3 font-16 font-bd color-dark maxwidth580">{discussMessage.title}</a> :"" | 
			
		
	
		
			
				
					|  |  |  |  |                       } | 
			
		
	
	
		
			
				
					|  |  |  | @ -207,7 +212,7 @@ class Fileslistitem extends Component{ | 
			
		
	
		
			
				
					|  |  |  |  | 												 discussMessage.is_lock === true ? | 
			
		
	
		
			
				
					|  |  |  |  |                                 <span className="fl mt3 font-16 font-bd color-dark maxwidth580">{discussMessage.title}</span> | 
			
		
	
		
			
				
					|  |  |  |  |                                 :<a | 
			
		
	
		
			
				
					|  |  |  |  | 														 onClick={()=>this.showfiles(discussMessage.title)} | 
			
		
	
		
			
				
					|  |  |  |  | 														 onClick={()=>this.showfiles(discussMessage)} | 
			
		
	
		
			
				
					|  |  |  |  | 														 title={discussMessage.title} | 
			
		
	
		
			
				
					|  |  |  |  | 														 className="fl mt3 font-16 font-bd color-dark maxwidth580">{discussMessage.title}</a>:"" | 
			
		
	
		
			
				
					|  |  |  |  | 												} | 
			
		
	
	
		
			
				
					|  |  |  | 
 |