equal
deleted
inserted
replaced
100 _annotation.trigger("unselect"); |
100 _annotation.trigger("unselect"); |
101 }) |
101 }) |
102 .click(function() { |
102 .click(function() { |
103 if(_this.use_timerange){ |
103 if(_this.use_timerange){ |
104 if(!_this.media.getTimeRange()){ |
104 if(!_this.media.getTimeRange()){ |
105 _this.media.setTimeRange(_annotation.begin, _annotation.end) |
105 _this.media.setCurrentTime(_annotation.begin); |
|
106 _this.media.setTimeRange(_annotation.begin, _annotation.end); |
|
107 _this.media.play(); |
106 _this.$segments.each(function(){ |
108 _this.$segments.each(function(){ |
107 var _segment = IriSP.jQuery(this); |
109 var _segment = IriSP.jQuery(this); |
108 _segment.css("background", lowcolor).removeClass("selected"); |
110 _segment.css("background", lowcolor).removeClass("selected"); |
109 }) |
111 }) |
110 _el.css("background", _this.selected_color).addClass("selected"); |
112 _el.css("background", _this.selected_color).addClass("selected"); |
116 _segment.css("background", lowcolor).removeClass("selected"); |
118 _segment.css("background", lowcolor).removeClass("selected"); |
117 _annotation.trigger("select"); |
119 _annotation.trigger("select"); |
118 }) |
120 }) |
119 } |
121 } |
120 else { |
122 else { |
|
123 _this.media.setCurrentTime(_annotation.begin); |
121 _this.media.setTimeRange(_annotation.begin, _annotation.end); |
124 _this.media.setTimeRange(_annotation.begin, _annotation.end); |
|
125 _this.media.play(); |
122 _this.$segments.each(function(){ |
126 _this.$segments.each(function(){ |
123 var _segment = IriSP.jQuery(this); |
127 var _segment = IriSP.jQuery(this); |
124 _segment.css("background", lowcolor).removeClass("selected"); |
128 _segment.css("background", lowcolor).removeClass("selected"); |
125 }) |
129 }) |
126 _el.css("background", _this.selected_color).addClass("selected"); |
130 _el.css("background", _this.selected_color).addClass("selected"); |