New UI and js/css breakage

anf107
Community Participant

I'm trying to keep track of the new UI and what needs to change in our js file.  So far it looks like the course enrollment role detection is broken.  It's no longer listed in the Nav menu.  This was the old js code that we found somewhere.

function isRole(srole){

if (jQuery("[data-id = " + ENV.course.id +"]").children().children("span.subtitle").not("span.enrollment_term").text() == "Enrolled as: " + srole)

{

return true;

}

else

{

return false;

}

}

Did someone find it elsewhere?  It doesn't look like it's in ENV either.

Has anyone found any other problem areas?