integration/js/mashupplayer.js
changeset 141 f1b68efb360a
parent 109 3034776c1f35
child 149 f2daa65fcab6
equal deleted inserted replaced
138:729a6ee4ea1c 141:f1b68efb360a
    61             $(".media[data-media-id='" + mediaid + "']").addClass("active");
    61             $(".media[data-media-id='" + mediaid + "']").addClass("active");
    62         });
    62         });
    63         
    63         
    64         project.on("mouseout-annotation", function(annotation) {
    64         project.on("mouseout-annotation", function(annotation) {
    65             $(".media").removeClass("active");
    65             $(".media").removeClass("active");
    66             var mediaid = mashup.currentMedia.id;
    66             if (mashup.currentMedia) {
    67             $(".media[data-media-id='" + mediaid + "']").addClass("active");
    67                 var mediaid = mashup.currentMedia.id;
       
    68                 $(".media[data-media-id='" + mediaid + "']").addClass("active");
       
    69             }
    68         });
    70         });
    69         
    71         
    70         $(".list-video")
    72         $(".list-video")
    71         .on("mouseover", ".frise-segment", function() {
    73         .on("mouseover", ".frise-segment", function() {
    72             project.trigger("mouseover-annotation", project.getElement($(this).attr("data-segment-id")));
    74             project.trigger("mouseover-annotation", project.getElement($(this).attr("data-segment-id")));