From f4aaa06663868d206f83bbc5148daa5191fec455 Mon Sep 17 00:00:00 2001 From: snogcel Date: Mon, 19 Dec 2016 21:24:24 -0700 Subject: [PATCH] various adjustments --- index.html | 10 +++++----- js/paymentCycle.js | 11 ++++++++--- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/index.html b/index.html index 744bd00..b9f81c1 100755 --- a/index.html +++ b/index.html @@ -240,10 +240,10 @@ @@ -292,7 +292,7 @@
- +
diff --git a/js/paymentCycle.js b/js/paymentCycle.js index 8741bf4..b651e3d 100755 --- a/js/paymentCycle.js +++ b/js/paymentCycle.js @@ -15,8 +15,8 @@ function PaymentCycle(gov, provider) { this.selectedStartIndex = 0; this.selectedPeriods = 1; - if (this.network == 'testnet') this.paymentCycle = 24; - if (this.network == 'testnet') this.budgetCycles = 96; + if (this.network == 'testnet') this.paymentCycle = 23; + if (this.network == 'testnet') this.budgetCycles = 99; this.blockHeight = null; @@ -25,6 +25,8 @@ function PaymentCycle(gov, provider) { this.Messages = { paymentCycle: { + payment: "Payment", + payments: "Payments", months: "Months", month: "Month", days: "Days", @@ -157,15 +159,18 @@ PaymentCycle.prototype.updateEndEpoch = function() { end_epoch.find('option').remove(); var i = 1; + var payments = self.Messages.paymentCycle.payment; $.each(this.endDate, function(index) { if(index >= self.selectedStartIndex) { + if (i > 1) payments = self.Messages.paymentCycle.payments; + var eta = self.getTimeDifference(opts, self.startDate[self.selectedStartIndex].timestamp, this.timestamp); var time = this.timestamp - self.startDate[self.selectedStartIndex].timestamp; - var option = $("