Page MenuHomePhabricator

Interactive graphs auto-resets every few seconds
Closed, ResolvedPublic

Description

For some reason, all interactive graphs are automatically reset every second.

Go to this graph, make it interactive, and move the slider to another year. It will autoreset within second.

https://www.mediawiki.org/wiki/Extension:Graph/Graph:Historical_Fertility_Rates

Event Timeline

Yurik raised the priority of this task from to Needs Triage.
Yurik updated the task description. (Show Details)
Yurik added subscribers: Yurik, TheDJ, JGirault.

... but not if you drag the slider all the way to one end or the other.

The <div class="mw-graph mw-graph-interactable"> has an on-click event that converts this graph from image to interactive form, but this event keeps firing even after the graph is loaded. Changing the class from "mw-graph mw-graph-interactable" to "mw-graph mw-graph-interactive" after loading the graph would solve this issue.

Change 264713 had a related patch set uploaded (by Yurik):
Fixed graph reset on click

https://gerrit.wikimedia.org/r/264713

Change 264713 merged by jenkins-bot:
Fixed graph reset on click

https://gerrit.wikimedia.org/r/264713

Change 264715 had a related patch set uploaded (by Yurik):
Fixed graph reset on click

https://gerrit.wikimedia.org/r/264715

hmm, there's a few more things wrong/less than ideal in that loader script.. I'll try to clean it up a bit on this flight i'm about to jump on. :)

Change 264715 merged by jenkins-bot:
Fixed graph reset on click

https://gerrit.wikimedia.org/r/264715

Krenair claimed this task.
Krenair reassigned this task from Krenair to Yurik.
Krenair set Security to None.