Merge pull request #649 from opf/feature/timelines-render-bucket-size

pull/651/head
Hagen Schink 11 years ago
commit 4fb450289a
  1. 10
      app/assets/javascripts/timelines.js
  2. 1
      doc/CHANGELOG.md

@ -3656,7 +3656,7 @@ Timeline = {
DAY_WIDTH: 16,
MIN_CHART_WIDTH: 200,
RENDER_BUCKETS: 2,
RENDER_BUCKET_SIZE: 32,
ORIGINAL_BORDER_WIDTH_CORRECTION: 3,
BORDER_WIDTH_CORRECTION: 3,
HOVER_THRESHOLD: 3,
@ -4870,19 +4870,19 @@ Timeline = {
});
var render_next_bucket = function() {
if (jQuery.each(pre_render_bucket.splice(0, Timeline.RENDER_BUCKETS), function(i, e) {
if (jQuery.each(pre_render_bucket.splice(0, Timeline.RENDER_BUCKET_SIZE), function(i, e) {
e.call();
}).length !== 0) {
timeline.defer(render_next_bucket);
} else if (jQuery.each(render_bucket.splice(0, Timeline.RENDER_BUCKETS), function(i, e) {
} else if (jQuery.each(render_bucket.splice(0, Timeline.RENDER_BUCKET_SIZE), function(i, e) {
e.call();
}).length !== 0) {
timeline.defer(render_next_bucket);
} else if (jQuery.each(post_render_bucket.splice(0, Timeline.RENDER_BUCKETS), function(i, e) {
} else if (jQuery.each(post_render_bucket.splice(0, Timeline.RENDER_BUCKET_SIZE), function(i, e) {
e.call();
}).length !== 0) {
timeline.defer(render_next_bucket);
} else if (jQuery.each(text_render_bucket.splice(0, Timeline.RENDER_BUCKETS), function(i, e) {
} else if (jQuery.each(text_render_bucket.splice(0, Timeline.RENDER_BUCKET_SIZE), function(i, e) {
e.call();
}).length !== 0) {
timeline.defer(render_next_bucket);

@ -31,6 +31,7 @@ See doc/COPYRIGHT.rdoc for more details.
* `#2653` Remove relative vertical offset corrections and custom border fixes for IE8.
* `#2654` Remove custom font rendering/kerning as well as VML from timelines.
* `#2655` Find a sensible default for Timelines rendering bucket size.
* `#2699` [Wiki] 400 error when entering special character in wiki title
* Fix mysql data migrations

Loading…
Cancel
Save