src/js/widgets/arrowWidget.js
branchpopcorn-port
changeset 305 e8d05c3f77ed
parent 299 d2005f747d5a
child 313 7df805ebb75e
equal deleted inserted replaced
304:a938013fc6ea 305:e8d05c3f77ed
    14 };
    14 };
    15 
    15 
    16 IriSP.ArrowWidget.prototype.draw = function() {
    16 IriSP.ArrowWidget.prototype.draw = function() {
    17   var templ = Mustache.to_html(IriSP.arrowWidget_template, {});
    17   var templ = Mustache.to_html(IriSP.arrowWidget_template, {});
    18   this.selector.append(templ);
    18   this.selector.append(templ);
       
    19   this._Popcorn.listen("IriSP.SegmentsWidget.segmentClick", IriSP.wrap(this, this.segmentClickHandler));
    19 };
    20 };
       
    21 
       
    22 IriSP.ArrowWidget.prototype.segmentClickHandler = function(percents) {
       
    23  this.selector.children(".Ldt-arrowWidget").css("left", percents + "%");
       
    24 }