r20474 - gnucash/trunk/src/report/report-system - Shared code between the various jqplot charts
Christian Stimming
cstim at code.gnucash.org
Thu Mar 24 17:30:24 EDT 2011
Author: cstim
Date: 2011-03-24 17:30:24 -0400 (Thu, 24 Mar 2011)
New Revision: 20474
Trac: http://svn.gnucash.org/trac/changeset/20474
Added:
gnucash/trunk/src/report/report-system/html-jqplot.scm
Modified:
gnucash/trunk/src/report/report-system/Makefile.am
Log:
Shared code between the various jqplot charts
From: Andy Clayton <q3aiml at gmail.com>
Modified: gnucash/trunk/src/report/report-system/Makefile.am
===================================================================
--- gnucash/trunk/src/report/report-system/Makefile.am 2011-03-24 21:30:09 UTC (rev 20473)
+++ gnucash/trunk/src/report/report-system/Makefile.am 2011-03-24 21:30:24 UTC (rev 20474)
@@ -49,6 +49,7 @@
html-table.scm \
html-text.scm \
html-utilities.scm \
+ html-jqplot.scm \
options-utilities.scm \
report-utilities.scm \
report.scm
Added: gnucash/trunk/src/report/report-system/html-jqplot.scm
===================================================================
--- gnucash/trunk/src/report/report-system/html-jqplot.scm (rev 0)
+++ gnucash/trunk/src/report/report-system/html-jqplot.scm 2011-03-24 21:30:24 UTC (rev 20474)
@@ -0,0 +1,16 @@
+(load-from-path "doc.scm")
+
+(define (gnc:html-js-include file)
+ (string-append
+ "<script language=\"javascript\" type=\"text/javascript\" src=\""
+ (gnc:find-file file (gnc:config-var-value-get gnc:*doc-path*))
+ "\"></script>\n"
+ ))
+
+(define (gnc:html-css-include file)
+ (string-append
+ "<link rel=\"stylesheet\" type=\"text/css\" href=\""
+ (gnc:find-file file (gnc:config-var-value-get gnc:*doc-path*))
+ "\" />\n"
+ ))
+
More information about the gnucash-changes
mailing list