--- a/src/js/widgets/arrowWidget.js Wed Nov 23 11:13:21 2011 +0100
+++ b/src/js/widgets/arrowWidget.js Wed Nov 23 11:14:01 2011 +0100
@@ -16,4 +16,9 @@
IriSP.ArrowWidget.prototype.draw = function() {
var templ = Mustache.to_html(IriSP.arrowWidget_template, {});
this.selector.append(templ);
+ this._Popcorn.listen("IriSP.SegmentsWidget.segmentClick", IriSP.wrap(this, this.segmentClickHandler));
};
+
+IriSP.ArrowWidget.prototype.segmentClickHandler = function(percents) {
+ this.selector.children(".Ldt-arrowWidget").css("left", percents + "%");
+}