Problem with adding clssen when video is missing
-
I’m using that function
function dodanieBtnPowDo() { document.querySelector('.llms-parent-course-link').className = 'llms-parent-course-link btn btn-default'; }
function after() { var jestP = document.querySelector('.llms-parent-course-link'); if ( jestP !== null ) { dodanieBtnPowDo(); } window.onload = after;
to add some classes to .llms-parent-course-link.
The problem is when there is no video added/embeded using Video Embed Url field on the the lesson editing page (also the problem occurs on quiz pages which doesn’t have video at all).
Styles from may function are not applied at all. After adding video everything is ok.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Problem with adding clssen when video is missing’ is closed to new replies.