fixing mark up for the lesson badge notification
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 30 Jul 2018 15:20:39 +0000 (11:20 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 30 Jul 2018 15:20:39 +0000 (11:20 -0400)
footer.php

index cd6f124..f3b95f2 100644 (file)
                     if( (this.response.includes('lesson_finished') ) && this.readyState === 4 ){
                                                let data = JSON.parse(this.response);
                         setTimeout(function(){
-                            $(".glm-badge-alert#quiz-badge").fadeIn("fast");
-                            $(".glm-badge-alert#quiz-badge").addClass("shake");
+                            $(".glm-badge-alert#lesson-badge").fadeIn("fast");
+                            $(".glm-badge-alert#lesson-badge").addClass("shake");
                         }, 1500);
                         setTimeout(function(){
-                            $(".glm-badge-alert#quiz-badge").fadeOut("slow");
+                            $(".glm-badge-alert#lesson-badge").fadeOut("slow");
                         }, 10000);
                     }
                     if( this.response.includes('course_finished') && this.readyState === 4 ){