mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-01 18:10:06 +00:00
This should fix most Javascript errors.
This commit is contained in:
@@ -8,11 +8,13 @@
|
||||
* See the LICENSE file for details.
|
||||
*/
|
||||
|
||||
/** global: Tour, showTour, accountFrontpageUri, billCount, accountExpenseUri, accountRevenueUri */
|
||||
|
||||
$(function () {
|
||||
"use strict";
|
||||
// do chart JS stuff.
|
||||
drawChart();
|
||||
if (showTour) {
|
||||
if (showTour == true) {
|
||||
$.getJSON('json/tour').done(function (data) {
|
||||
var tour = new Tour(
|
||||
{
|
||||
@@ -55,6 +57,9 @@ function getBoxAmounts() {
|
||||
"use strict";
|
||||
var boxes = ['in', 'out', 'bills-unpaid', 'bills-paid'];
|
||||
for (var x in boxes) {
|
||||
if (!boxes.hasOwnProperty(x)) {
|
||||
continue;
|
||||
}
|
||||
var box = boxes[x];
|
||||
$.getJSON('json/box/' + box).done(putData).fail(failData);
|
||||
}
|
||||
|
Reference in New Issue
Block a user