Apply jQuery 3.0 upgrade_guide recommendation

Use recommented way to define document-ready handlers. See [1]

[1] https://jquery.com/upgrade-guide/3.0/#deprecated-document-ready-handlers-other-than-jquery-function
This commit is contained in:
Senén Rodero Rodríguez
2020-08-17 15:48:26 +02:00
parent b499c0dcdd
commit d7efd748fa

View File

@@ -286,7 +286,7 @@
return this.groupBy === undefined || this.groupBy === "" || this.groupBy === null;
};
$(document).ready(function() {
$(function() {
$("[data-proposal-graph-url]").each(function() {
var graph = new ProposalGraph($(this).data("proposal-graph-url"));
graph.successfulProposalDataUrl = $(this).data("successful-proposal-graph-url");