135 '<body>' + content + '</body></html>'; |
135 '<body>' + content + '</body></html>'; |
136 document.write(pageContent); |
136 document.write(pageContent); |
137 document.close(); |
137 document.close(); |
138 newWindow.print(); |
138 newWindow.print(); |
139 }); |
139 }); |
140 $("#print").jqxButton({ template: "info", width: 125, theme: theme }); |
140 $("#print").jqxButton({ template: "primary", width: 125, theme: theme }); |
141 |
141 |
142 |
142 |
143 $("#pdfButton").click(function () { |
143 $("#pdfButton").click(function () { |
144 $("#fermenter_chart").jqxChart("saveAsPDF", "vergisting_"+my_code+".pdf", getExportServer()); |
144 $("#fermenter_chart").jqxChart("saveAsPDF", "vergisting_"+my_code+".pdf", getExportServer()); |
145 }); |
145 }); |
146 $("#pdfButton").jqxButton({ template: "info", width: 125, theme: theme }); |
146 $("#pdfButton").jqxButton({ template: "primary", width: 125, theme: theme }); |
147 |
147 |
148 $("#pngButton").click(function () { |
148 $("#pngButton").click(function () { |
149 $("#fermenter_chart").jqxChart("saveAsPNG", "vergisting_"+my_code+".png", getExportServer()); |
149 $("#fermenter_chart").jqxChart("saveAsPNG", "vergisting_"+my_code+".png", getExportServer()); |
150 }); |
150 }); |
151 $("#pngButton").jqxButton({ template: "info", width: 125, theme: theme }); |
151 $("#pngButton").jqxButton({ template: "primary", width: 125, theme: theme }); |
152 |
152 |
153 $("#Close").jqxButton({ template: "success", width: 125, theme: theme }); |
153 $("#Close").jqxButton({ template: "success", width: 125, theme: theme }); |
154 $("#Close").click(function () { |
154 $("#Close").click(function () { |
155 window.close(); |
155 window.close(); |
156 }); |
156 }); |