|
|
|
@ -825,7 +825,7 @@ class Coursesleftnav extends Component{
|
|
|
|
|
{ is_teacher===true?
|
|
|
|
|
course_modules===undefined?"":course_modules.map((item,key)=>{
|
|
|
|
|
return(
|
|
|
|
|
<div key={key} >
|
|
|
|
|
<div key={key} title={item.name.length<6?"":item.name}>
|
|
|
|
|
<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)}>
|
|
|
|
|
<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*/}
|
|
|
|
|
|
|
|
|
|
<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)}
|
|
|
|
|
>{item.name}</span>
|
|
|
|
|
|
|
|
|
@ -901,6 +900,7 @@ class Coursesleftnav extends Component{
|
|
|
|
|
ref={provided.innerRef}
|
|
|
|
|
{...provided.draggableProps}
|
|
|
|
|
{...provided.dragHandleProps}
|
|
|
|
|
title={iem.category_name.length<6?"":iem.category_name}
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
<a className="fl pl46 pd0 Draggablelichild">
|
|
|
|
@ -940,6 +940,7 @@ class Coursesleftnav extends Component{
|
|
|
|
|
<a >
|
|
|
|
|
<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)}
|
|
|
|
|
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"}>
|
|
|
|
|
{
|
|
|
|
@ -977,7 +978,7 @@ class Coursesleftnav extends Component{
|
|
|
|
|
}
|
|
|
|
|
return(
|
|
|
|
|
<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)} >
|
|
|
|
|
|
|
|
|
|
{/*<span className="fl ml38 maxwidth155 task-hide">{iem.category_name}</span>*/}
|
|
|
|
|