diff --git a/public/react/src/modules/courses/Resource/Fileslistitem.js b/public/react/src/modules/courses/Resource/Fileslistitem.js index b06ab3dc1..4e8e89567 100644 --- a/public/react/src/modules/courses/Resource/Fileslistitem.js +++ b/public/react/src/modules/courses/Resource/Fileslistitem.js @@ -30,7 +30,8 @@ class Fileslistitem extends Component{ showfiles=(list)=>{ if(list.is_history_file===false){ // this.props.DownloadFileA(list.title,list.url) - window.location.href=list.url; + //window.location.href=list.url; + window.open(list.url, '_blank'); }else{ let {discussMessage,coursesId}=this.props let file_id=discussMessage.id @@ -49,7 +50,7 @@ class Fileslistitem extends Component{ // // } // this.props.DownloadFileA(result.data.title,result.data.url) - window.location.href=list.url; + window.open(list.url, '_blank'); }else{ this.setState({ Showoldfiles:true, diff --git a/public/react/src/modules/courses/coursesPublic/Showoldfiles.js b/public/react/src/modules/courses/coursesPublic/Showoldfiles.js index 693e3448b..cb054964e 100644 --- a/public/react/src/modules/courses/coursesPublic/Showoldfiles.js +++ b/public/react/src/modules/courses/coursesPublic/Showoldfiles.js @@ -178,7 +178,7 @@ class Showoldfiles extends Component{
  • - {allfiles.title} + {allfiles.title} {/*{allfiles.is_pdf===false?*/} {/*{allfiles.title}:*/} {/*this.showfiless(allfiles.url)} >{allfiles.title}*/} @@ -198,7 +198,7 @@ class Showoldfiles extends Component{
  • - {item.title} + {item.title} {/*{item.is_pdf===false?*/} {/*{item.title}:*/} {/*this.showfiless(item.url)} >{item.title}*/}