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:
@@ -286,7 +286,7 @@
|
|||||||
return this.groupBy === undefined || this.groupBy === "" || this.groupBy === null;
|
return this.groupBy === undefined || this.groupBy === "" || this.groupBy === null;
|
||||||
};
|
};
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(function() {
|
||||||
$("[data-proposal-graph-url]").each(function() {
|
$("[data-proposal-graph-url]").each(function() {
|
||||||
var graph = new ProposalGraph($(this).data("proposal-graph-url"));
|
var graph = new ProposalGraph($(this).data("proposal-graph-url"));
|
||||||
graph.successfulProposalDataUrl = $(this).data("successful-proposal-graph-url");
|
graph.successfulProposalDataUrl = $(this).data("successful-proposal-graph-url");
|
||||||
|
|||||||
Reference in New Issue
Block a user