fixed issue preventing brant from being deployed
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
(function(){
|
(function(){
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
let ProposalGraph = function(url) {
|
var ProposalGraph = function(url) {
|
||||||
this.url = url;
|
this.url = url;
|
||||||
this.successfulProposalDataUrl = null;
|
this.successfulProposalDataUrl = null;
|
||||||
this.proposalAchievementsUrl = null;
|
this.proposalAchievementsUrl = null;
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
ProposalGraph.prototype.parseGoals = function(data) {
|
ProposalGraph.prototype.parseGoals = function(data) {
|
||||||
let i, l;
|
var i, l;
|
||||||
|
|
||||||
this.goals = [];
|
this.goals = [];
|
||||||
for (i = 0, l = data.length; i < l; i += 1) {
|
for (i = 0, l = data.length; i < l; i += 1) {
|
||||||
@@ -66,7 +66,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
ProposalGraph.prototype.parseData = function(data) {
|
ProposalGraph.prototype.parseData = function(data) {
|
||||||
let key;
|
var key;
|
||||||
|
|
||||||
this.xColumnValues = [ ];
|
this.xColumnValues = [ ];
|
||||||
this.progressColumnValues = [ this.progressLabel ];
|
this.progressColumnValues = [ this.progressLabel ];
|
||||||
@@ -93,7 +93,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
ProposalGraph.prototype.parseSuccessfulProposalData = function(data) {
|
ProposalGraph.prototype.parseSuccessfulProposalData = function(data) {
|
||||||
let key;
|
var key;
|
||||||
|
|
||||||
this.successfulColumnValues = [ this.successLabel ];
|
this.successfulColumnValues = [ this.successLabel ];
|
||||||
|
|
||||||
@@ -119,7 +119,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
ProposalGraph.prototype.parseAchievements = function(data) {
|
ProposalGraph.prototype.parseAchievements = function(data) {
|
||||||
let group;
|
var group;
|
||||||
|
|
||||||
this.achievements = [];
|
this.achievements = [];
|
||||||
for (group in data) {
|
for (group in data) {
|
||||||
@@ -183,7 +183,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
ProposalGraph.prototype.formatXColumnValues = function () {
|
ProposalGraph.prototype.formatXColumnValues = function () {
|
||||||
let i, l, parts;
|
var i, l, parts;
|
||||||
|
|
||||||
this.xColumnValues = this.xColumnValues.sort();
|
this.xColumnValues = this.xColumnValues.sort();
|
||||||
|
|
||||||
@@ -203,7 +203,7 @@
|
|||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$('[data-proposal-graph-url]').each(function () {
|
$('[data-proposal-graph-url]').each(function () {
|
||||||
let 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');
|
||||||
graph.proposalAchievementsUrl = $(this).data('proposal-achievements-url');
|
graph.proposalAchievementsUrl = $(this).data('proposal-achievements-url');
|
||||||
graph.targetId = $(this).attr('id');
|
graph.targetId = $(this).attr('id');
|
||||||
|
|||||||
Reference in New Issue
Block a user