diff -r f9d51dd4a3fe -r 7b65bf78873a src/widgets/Polemic.js --- a/src/widgets/Polemic.js Wed Dec 19 19:02:52 2012 +0100 +++ b/src/widgets/Polemic.js Thu Jan 17 17:25:46 2013 +0100 @@ -19,7 +19,7 @@ IriSP.Widgets.Polemic.prototype.defaults = { element_width : 5, element_height : 5, - max_elements : 15, + max_elements: 20, annotation_type : "tweet", defaultcolor : "#585858", foundcolor : "#fc00ff", @@ -137,8 +137,8 @@ _annotation.on("select", function() { if (_this.tooltip) { _this.tooltip.show( - Math.floor(_elx + (_this.element_width - 1) / 2), - _ely, + + Math.floor(_elx + (_this.element_width - 1) / 2), + + _ely, _annotation.title, _col ); @@ -272,10 +272,10 @@ _html = '
' + _this.l10n.from_ + _el.attr("begin-time") + _this.l10n._to_ + _el.attr("end-time") + '
'; for (var _i = 0; _i <= _this.polemics.length; _i++) { var _color = _i ? _this.polemics[_i - 1].color : _this.defaultcolor; - _html += '' + _nums[_i] + _this.l10n._annotations + '
' + _html += '' + _nums[_i] + _this.l10n._annotations + '
' } if (_this.tooltip) { - _this.tooltip.show(_el.attr("pos-x"), _el.attr("pos-y"), _html); + _this.tooltip.show(+ _el.attr("pos-x"), + _el.attr("pos-y"), _html); } }) .mouseout(function() {