diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a7d24c3a0..8f0bcf5952 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -324,7 +324,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). - Fixed a bug where a migration would check an empty table name. - Fixed various bugs in the import routine. - Fixed various bugs in the piggy banks pages. -- Fixed a bug in the ``firefly:verify`` routine +- Fixed a bug in the `firefly:verify` routine ## [3.10] - 2015-05-25 ### Added @@ -353,11 +353,11 @@ This project adheres to [Semantic Versioning](http://semver.org/). - Bulk update problems, #280, thanks @stickgrinder - Fixed various problems with amount reporting of split transactions. -[3.9.1] +## [3.9.1] ### Fixed - Fixed a bug where removing money from a piggy bank would not work. See issue #265 and #269 -[3.9.0] +## [3.9.0] ### Added - @zjean has added code that allows you to force "https://"-URL's. - @tonicospinelli has added Portuguese (Brazil) translations. diff --git a/public/js/ff/charts.js b/public/js/ff/charts.js index 0e9ff49d21..d402ab67f8 100644 --- a/public/js/ff/charts.js +++ b/public/js/ff/charts.js @@ -244,8 +244,7 @@ function drawAChart(URI, container, chartType, options, colorData) { $.getJSON(URI).done(function (data) { - - + $('#' + container).removeClass('general-chart-error'); if (data.labels.length === 0) { // remove the chart container + parent var holder = $('#' + container).parent().parent(); diff --git a/public/js/ff/reports/default/all.js b/public/js/ff/reports/default/all.js index 06e374dcee..1f838a0ebc 100644 --- a/public/js/ff/reports/default/all.js +++ b/public/js/ff/reports/default/all.js @@ -74,7 +74,8 @@ function loadAjaxPartial(holder, uri) { function displayAjaxPartial(data, holder) { "use strict"; var obj = $('#' + holder); - obj.removeClass('loading').html(data); + obj.html(data); + obj.parent().find('.overlay').remove(); // call some often needed recalculations and what-not: @@ -98,7 +99,9 @@ function displayAjaxPartial(data, holder) { function failAjaxPartial(uri, holder) { "use strict"; - $('#' + holder).removeClass('loading').addClass('general-chart-error'); + var holder = $('#' + holder); + holder.parent().find('.overlay').remove(); + holder.addClass('general-chart-error'); } diff --git a/public/js/ff/reports/index.js b/public/js/ff/reports/index.js index d59c0b3d30..77c15f0578 100644 --- a/public/js/ff/reports/index.js +++ b/public/js/ff/reports/index.js @@ -60,14 +60,18 @@ $(function () { function getReportOptions() { "use strict"; var reportType = $('select[name="report_type"]').val(); - $('#extra-options').empty(); - $('#extra-options').addClass('loading'); + var boxBody = $('#extra-options'); + var box = $('#extra-options-box'); + boxBody.empty(); + box.find('.overlay').show(); $.getJSON('reports/options/' + reportType, function (data) { - $('#extra-options').removeClass('loading').html(data.html); + boxBody.html(data.html); setOptionalFromCookies(); + box.find('.overlay').hide(); }).fail(function () { - $('#extra-options').removeClass('loading').addClass('error'); + boxBody.addClass('error'); + box.find('.overlay').hide(); }); } diff --git a/resources/views/reports/default/month.twig b/resources/views/reports/default/month.twig index 22a7ebe73d..c06a6e75e3 100644 --- a/resources/views/reports/default/month.twig +++ b/resources/views/reports/default/month.twig @@ -20,12 +20,16 @@