r22978 - gnucash/trunk/src/report/report-system - Fix charts on Windows

Geert Janssens gjanssens at code.gnucash.org
Wed May 15 07:12:58 EDT 2013


Author: gjanssens
Date: 2013-05-15 07:12:58 -0400 (Wed, 15 May 2013)
New Revision: 22978
Trac: http://svn.gnucash.org/trac/changeset/22978

Modified:
   gnucash/trunk/src/report/report-system/html-jqplot.scm
Log:
Fix charts on Windows

Local URI's should be prefixed with file://. Otherwise webkit and other
browsers as well (like firefox) will take the drive letter (C: - typical
for Windows) to be an unknown network protocol.

Modified: gnucash/trunk/src/report/report-system/html-jqplot.scm
===================================================================
--- gnucash/trunk/src/report/report-system/html-jqplot.scm	2013-05-13 08:34:06 UTC (rev 22977)
+++ gnucash/trunk/src/report/report-system/html-jqplot.scm	2013-05-15 11:12:58 UTC (rev 22978)
@@ -2,14 +2,14 @@
 
 (define (gnc:html-js-include file)
     (string-append
-        "<script language=\"javascript\" type=\"text/javascript\" src=\""
+        "<script language=\"javascript\" type=\"text/javascript\" src=\"file://"
         (gnc-path-find-localized-html-file file)
         "\"></script>\n"
     ))
 
 (define (gnc:html-css-include file)
     (string-append
-        "<link rel=\"stylesheet\" type=\"text/css\" href=\""
+        "<link rel=\"stylesheet\" type=\"text/css\" href=\"file://"
         (gnc-path-find-localized-html-file file)
         "\" />\n"
     ))



More information about the gnucash-changes mailing list