# HG changeset patch
# User hamidouk
# Date 1320758863 -3600
# Node ID 7ab4ff32a19d2500e338b0e69ccd5faebddbb138
# Parent 63501d879bcea55f15d9633ce8f7b54358834b8e
removed the code to move the arrow since the arrow isn't in the new design.
diff -r 63501d879bce -r 7ab4ff32a19d src/js/widgets/segmentsWidget.js
--- a/src/js/widgets/segmentsWidget.js Tue Nov 08 14:11:39 2011 +0100
+++ b/src/js/widgets/segmentsWidget.js Tue Nov 08 14:27:43 2011 +0100
@@ -18,7 +18,7 @@
var annotations = this._serializer._data.annotations;
//this.selector.attr("class", "Ldt-Segments");
- //this.selector.append("
bfdgdfgsdfgsdgsdfgsdg
")
+ //this.selector.append("")
var i = 0;
@@ -61,20 +61,6 @@
IriSP.jQuery("#" + id).click(function(_this, annotation) {
return function() { _this.clickHandler(annotation)};
}(this, annotation));
-
- // also add an handler to move the arrow.
- // FIXME: make it work - the arrow swings wildly atm.
- var middle = IriSP.timeToPourcent(begin + (end - begin)/ 2, duration);
- var arrow_div_width = IriSP.jQuery("#Ldt-Show-Arrow").width();
-
- var real_middle = middle - (middle * (1 - this.width/arrow_div_width));
- var conf = {start: begin, end: end,
- onStart:
- function(middle) {
- return function() {
- IriSP.jQuery("#Ldt-Show-Arrow").animate({left: real_middle + '%'}, 1000); }}(middle)
- };
- this._Popcorn = this._Popcorn.code(conf);
}
};