src/widgets/Segments.js
branchnew-model
changeset 881 f11b234497f7
parent 876 03967b6ada7c
child 905 029a4efe9e24
equal deleted inserted replaced
880:4c7b33bf2795 881:f11b234497f7
    67         _this.$segments.removeClass("inactive active");
    67         _this.$segments.removeClass("inactive active");
    68     })
    68     })
    69     .click(function() {
    69     .click(function() {
    70         var _el = IriSP.jQuery(this);
    70         var _el = IriSP.jQuery(this);
    71         _this.player.popcorn.currentTime(_el.attr("begin-seconds"));
    71         _this.player.popcorn.currentTime(_el.attr("begin-seconds"));
       
    72         _this.player.popcorn.trigger("IriSP.Mediafragment.setHashToAnnotation", _el.attr("segment-id"));
    72     });
    73     });
    73 }
    74 }
    74 
    75 
    75 IriSP.Widgets.Segments.prototype.onSearch = function(searchString) {
    76 IriSP.Widgets.Segments.prototype.onSearch = function(searchString) {
    76     this.searchString = typeof searchString !== "undefined" ? searchString : '';
    77     this.searchString = typeof searchString !== "undefined" ? searchString : '';