[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [16413]
From: |
nelson . guerra |
Subject: |
[Fmsystem-commits] [16413] |
Date: |
Tue, 7 Mar 2017 22:15:08 -0500 (EST) |
Revision: 16413
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=16413
Author: nelson224
Date: 2017-03-07 22:15:08 -0500 (Tue, 07 Mar 2017)
Log Message:
-----------
Modified Paths:
--------------
branches/dev-syncromind-2/property/js/portico/tts.report.js
Modified: branches/dev-syncromind-2/property/js/portico/tts.report.js
===================================================================
--- branches/dev-syncromind-2/property/js/portico/tts.report.js 2017-03-08
03:14:52 UTC (rev 16412)
+++ branches/dev-syncromind-2/property/js/portico/tts.report.js 2017-03-08
03:15:08 UTC (rev 16413)
@@ -64,4 +64,22 @@
$("#btn_search").trigger( "click" );
+ $('#btn_print').click( function()
+ {
+ var canvas = document.getElementById("chart-area");
+ var src = canvas.toDataURL("image/png");
+
+ $("#content-image").html('');
+
+ var img = $('<img id="dynamic">');
+ img.attr('src', src);
+ img.appendTo('#content-image');
+
+ $("#content-image").print({
+ //Use Global styles
+ globalStyles : false,
+ //Add link with attrbute media=print
+ mediaPrint : true
+ });
+ });
});
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [16413],
nelson . guerra <=