From 28de0f4c7806664ab4dbc0fe193bd7cac9a4e729 Mon Sep 17 00:00:00 2001 From: Geert Janssens Date: Sun, 18 Aug 2013 21:22:07 +0000 Subject: [PATCH] Bug 704525 - When you have a mix of chart types (bar charts and pie charts) Add calls to gnc:substring-replace-from-to to procedure gnc:report-run. Filter out all occurances of jquery.min.js and jquery.jqplot.js except for the first occurances. Author: Carsten Rinke git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23144 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/report/report-system/report.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/report/report-system/report.scm b/src/report/report-system/report.scm index c8e9c4c5ae..ccf574b287 100644 --- a/src/report/report-system/report.scm +++ b/src/report/report-system/report.scm @@ -751,7 +751,10 @@ (lambda () (if report (begin - (set! html (gnc:report-render-html report #t)))))) + (set! html (gnc:report-render-html report #t)) + (set! html (gnc:substring-replace-from-to html "jquery.min.js" "" 2 -1)) + (set! html (gnc:substring-replace-from-to html "jquery.jqplot.js" "" 2 -1)) + )))) (gnc-unset-busy-cursor '()) html))