|
|
@ -825,7 +825,7 @@ class Coursesleftnav extends Component{
|
|
|
|
{ is_teacher===true?
|
|
|
|
{ is_teacher===true?
|
|
|
|
course_modules===undefined?"":course_modules.map((item,key)=>{
|
|
|
|
course_modules===undefined?"":course_modules.map((item,key)=>{
|
|
|
|
return(
|
|
|
|
return(
|
|
|
|
<div key={key} >
|
|
|
|
<div key={key} title={item.name.length<6?"":item.name}>
|
|
|
|
<a>
|
|
|
|
<a>
|
|
|
|
<li onClick={(e)=>this.showsandians(e,key,item.category_url,1)} className={this.props.mainurl===item.category_url&&key===this.props.indexs?"liactive":"clearfix active"} onMouseLeave={(e)=>this.hidesandian(e,key)} onMouseEnter={(e)=>this.showsandian(e,key)}>
|
|
|
|
<li onClick={(e)=>this.showsandians(e,key,item.category_url,1)} className={this.props.mainurl===item.category_url&&key===this.props.indexs?"liactive":"clearfix active"} onMouseLeave={(e)=>this.hidesandian(e,key)} onMouseEnter={(e)=>this.showsandian(e,key)}>
|
|
|
|
<a onClick={(e)=>this.showsandians(e,key,item.category_url,1)} className={ item.second_category===undefined?"fl ml20 pd0":item.second_category.length===0?"fl ml20 pd0":this.state.sandiantypes===key?"fl ml20 pd0 ebebeb":"fl ml20 pd0"}>
|
|
|
|
<a onClick={(e)=>this.showsandians(e,key,item.category_url,1)} className={ item.second_category===undefined?"fl ml20 pd0":item.second_category.length===0?"fl ml20 pd0":this.state.sandiantypes===key?"fl ml20 pd0 ebebeb":"fl ml20 pd0"}>
|
|
|
@ -844,7 +844,6 @@ class Coursesleftnav extends Component{
|
|
|
|
{/*||this.props.location.pathname===this.state.url&&key===this.state.indexs*/}
|
|
|
|
{/*||this.props.location.pathname===this.state.url&&key===this.state.indexs*/}
|
|
|
|
|
|
|
|
|
|
|
|
<span className={this.props.location.pathname===item.category_url?"color-blue task-hide activity-left-name":"task-hide activity-left-name"}
|
|
|
|
<span className={this.props.location.pathname===item.category_url?"color-blue task-hide activity-left-name":"task-hide activity-left-name"}
|
|
|
|
title={item.name.length<6?"":item.name}
|
|
|
|
|
|
|
|
onClick={(e)=>this.selectnavid(e,key,item.id,item.type,item.category_url)}
|
|
|
|
onClick={(e)=>this.selectnavid(e,key,item.id,item.type,item.category_url)}
|
|
|
|
>{item.name}</span>
|
|
|
|
>{item.name}</span>
|
|
|
|
|
|
|
|
|
|
|
@ -901,6 +900,7 @@ class Coursesleftnav extends Component{
|
|
|
|
ref={provided.innerRef}
|
|
|
|
ref={provided.innerRef}
|
|
|
|
{...provided.draggableProps}
|
|
|
|
{...provided.draggableProps}
|
|
|
|
{...provided.dragHandleProps}
|
|
|
|
{...provided.dragHandleProps}
|
|
|
|
|
|
|
|
title={iem.category_name.length<6?"":iem.category_name}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
|
|
<a className="fl pl46 pd0 Draggablelichild">
|
|
|
|
<a className="fl pl46 pd0 Draggablelichild">
|
|
|
@ -940,6 +940,7 @@ class Coursesleftnav extends Component{
|
|
|
|
<a >
|
|
|
|
<a >
|
|
|
|
<li className={this.props.mainurl===item.category_url&&key===this.props.indexs?"liactive":"clearfix active"}
|
|
|
|
<li className={this.props.mainurl===item.category_url&&key===this.props.indexs?"liactive":"clearfix active"}
|
|
|
|
onClick={(e)=>this.setnavid(e,key,item.id,item.type,item.category_url)} onMouseEnter={(e)=>this.showsandian(e,key)}
|
|
|
|
onClick={(e)=>this.setnavid(e,key,item.id,item.type,item.category_url)} onMouseEnter={(e)=>this.showsandian(e,key)}
|
|
|
|
|
|
|
|
title={item.name.length<6?"":item.name}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<a className={ item.second_category===undefined?"fl ml20 pd0":item.second_category.length===0?"fl ml20 pd0":this.state.sandiantypes===key?"fl ml20 pd0 ebebeb":"fl ml20 pd0"}>
|
|
|
|
<a className={ item.second_category===undefined?"fl ml20 pd0":item.second_category.length===0?"fl ml20 pd0":this.state.sandiantypes===key?"fl ml20 pd0 ebebeb":"fl ml20 pd0"}>
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -977,7 +978,7 @@ class Coursesleftnav extends Component{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return(
|
|
|
|
return(
|
|
|
|
<a >
|
|
|
|
<a >
|
|
|
|
<li className="clearfix Draggableli" key={index} style={{ width: '244px'}}>
|
|
|
|
<li className="clearfix Draggableli" key={index} style={{ width: '244px'}} title={iem.category_name.length<6?"":iem.category_name}>
|
|
|
|
<a className="fl pl46 pd0 Draggablelichild" onClick={(e)=>this.selectnavids(e,key,iem.category_id,item.type+"child",iem.second_category_url,key)} >
|
|
|
|
<a className="fl pl46 pd0 Draggablelichild" onClick={(e)=>this.selectnavids(e,key,iem.category_id,item.type+"child",iem.second_category_url,key)} >
|
|
|
|
|
|
|
|
|
|
|
|
{/*<span className="fl ml38 maxwidth155 task-hide">{iem.category_name}</span>*/}
|
|
|
|
{/*<span className="fl ml38 maxwidth155 task-hide">{iem.category_name}</span>*/}
|
|
|
|