src/js/widgets/annotationsListWidget.js
branchpopcorn-port
changeset 615 7eb41c26a8b7
parent 607 0b94ae49efbd
child 621 170a8cd859d5
equal deleted inserted replaced
614:116de1c38a7d 615:7eb41c26a8b7
    31   for (i = 0; i < annotations.length; i++) {
    31   for (i = 0; i < annotations.length; i++) {
    32     var annotation = annotations[i];
    32     var annotation = annotations[i];
    33 
    33 
    34     /* filter the annotations whose type is not the one we want */
    34     /* filter the annotations whose type is not the one we want */
    35     if (typeof(annotation.meta) !== "undefined" && typeof(annotation.meta["id-ref"]) !== "undefined"
    35     if (typeof(annotation.meta) !== "undefined" && typeof(annotation.meta["id-ref"]) !== "undefined"
    36           && annotation.meta["id-ref"] != view_type) {
    36           && annotation.meta["id-ref"] !== view_type) {
    37         continue;
    37         continue;
    38     }
    38     }
    39 
    39 
    40     /* only get the annotations happening in the current chapter */
    40     /* only get the annotations happening in the current chapter */
    41     if (!(annotation.begin <= currentTime * 1000 && annotation.end > currentTime * 1000)) {        
    41     if (!(annotation.begin <= currentTime * 1000 && annotation.end > currentTime * 1000)) {