src/widgets/MultiSegments.js
changeset 1069 2409cb4cebaf
parent 1068 7623f9af9272
child 1072 ac1eacb3aa33
equal deleted inserted replaced
1068:7623f9af9272 1069:2409cb4cebaf
    25             annotationopts[_k.replace(/^annotation_/,"")] = _v;
    25             annotationopts[_k.replace(/^annotation_/,"")] = _v;
    26         }
    26         }
    27     });
    27     });
    28     this.source.getAnnotationTypes().forEach(function(_anntype) {
    28     this.source.getAnnotationTypes().forEach(function(_anntype) {
    29         var segments = _anntype.getAnnotations().filter(function(_ann) {
    29         var segments = _anntype.getAnnotations().filter(function(_ann) {
    30             return _ann.getDuration() > 0;
    30             return _ann.getDuration() > 0 && _ann.getMedia().id == _this.media.id;
    31         });
    31         });
    32         if (segments.length) {
    32         if (segments.length) {
    33             
    33             
    34             var visible = false;
    34             var visible = false;
    35             
    35