src/widgets/Renkan.js
changeset 983 97fef7a4b189
parent 957 4da0a5740b6c
child 997 1615c7e4ef9d
equal deleted inserted replaced
982:cfcbac34d020 983:97fef7a4b189
    88                 });
    88                 });
    89             }
    89             }
    90             var _tagmatch = _uri.match(_this.tag_regexp);
    90             var _tagmatch = _uri.match(_this.tag_regexp);
    91             if (_tagmatch) {
    91             if (_tagmatch) {
    92                 _node.on("select", function() {
    92                 _node.on("select", function() {
    93                     _this.player.trigger("search.triggeredSearch",_tagmatch[1]);
    93                     _this.source.getAnnotations().search(_tagmatch[1]);
    94                 })
    94                 })
    95                 _node.on("unselect", function() {
    95                 _node.on("unselect", function() {
    96                     _this.player.trigger("search.cleared");
    96                     _this.source.getAnnotations().search("");
    97                 })
    97                 })
    98             }
    98             }
    99         });
    99         });
   100     })
   100     })
   101     this.onMediaEvent("timeupdate","onTimeupdate");
   101     this.onMediaEvent("timeupdate","onTimeupdate");