Wed, 04 Mar 2020 10:48:21 +0100
Workaround for hang during startup. Changed order of displayed fields on the yeast tab. Tooltip text changes. More decimals on the checklist for misc ingredients. More decimals for the starter on product print.
172 | 1 | /***************************************************************************** |
602
10b61aacb1c1
New products field log_ispindel. Add check for ispindel log to crontasks.php Added log_ispindel to prod_edit, pprod_divide, prod_new and prod_duplicate. Renamed some log_fermentation vergisting names into klimaatkast.
Michiel Broek <mbroek@mbse.eu>
parents:
527
diff
changeset
|
2 | * Copyright (C) 2019-2020 |
172 | 3 | * |
4 | * Michiel Broek <mbroek at mbse dot eu> | |
5 | * | |
6 | * This file is part of BMS | |
7 | * | |
8 | * This is free software; you can redistribute it and/or modify it | |
9 | * under the terms of the GNU General Public License as published by the | |
10 | * Free Software Foundation; either version 2, or (at your option) any | |
11 | * later version. | |
12 | * | |
13 | * Brewery Managment System is distributed in the hope that it will be useful, | |
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
16 | * General Public License for more details. | |
17 | * | |
18 | * You should have received a copy of the GNU General Public License | |
19 | * along with ThermFerm; see the file COPYING. If not, write to the Free | |
20 | * Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. | |
21 | *****************************************************************************/ | |
22 | ||
23 | ||
527
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
24 | $(document).ready(function() { |
172 | 25 | |
527
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
26 | $('#jqxMenu').jqxMenu('destroy'); |
296
69fadd1aded2
Updated design document. Add content header application/json to all scripts that produce json output. Chart prints show the beer code and name in the header. Charts don't display the menu anymore.
Michiel Broek <mbroek@mbse.eu>
parents:
194
diff
changeset
|
27 | |
527
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
28 | $('#jqxLoader').jqxLoader({ |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
29 | width: 250, |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
30 | height: 150, |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
31 | isModal: true, |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
32 | text: 'Opmaken grafiek ...', |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
33 | theme: theme |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
34 | }); |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
35 | $('#jqxLoader').jqxLoader('open'); |
172 | 36 | |
527
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
37 | function getExportServer() { |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
38 | return 'https://www.jqwidgets.com/export_server/export.php'; |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
39 | } |
172 | 40 | |
527
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
41 | var sourceA = { |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
42 | datatype: 'json', |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
43 | datafields: [ |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
44 | { name: 'date', type: 'date', format: 'yyyy-MM-dd HH:mm' }, |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
45 | { name: 'air', type: 'float' }, |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
46 | { name: 'beer', type: 'float' }, |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
47 | { name: 'chiller', type: 'float' }, |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
48 | { name: 'room', type: 'float' }, |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
49 | { name: 'tlo', type: 'float' }, |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
50 | { name: 'thi', type: 'float' }, |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
51 | { name: 'heater', type: 'int' }, |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
52 | { name: 'cooler', type: 'int' }, |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
53 | { name: 'event', type: 'string' } |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
54 | ], |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
55 | url: 'getfermentlog.php?code=' + my_code + '&name=' + my_name |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
56 | }, |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
57 | dataAdapter = new $.jqx.dataAdapter(sourceA, { |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
58 | autoBind: true, |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
59 | async: false, |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
60 | loadComplete: function() { |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
61 | $('#jqxLoader').jqxLoader('close'); |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
62 | }, |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
63 | loadError: function(jqXHR, status, error) { |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
64 | } |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
65 | }), |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
66 | settings = { |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
67 | title: my_code + ' "' + my_name + '"', |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
68 | description: '', |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
69 | source: dataAdapter, |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
70 | xAxis: { |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
71 | dataField: 'date', |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
72 | type: 'date', |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
73 | formatFunction: function(value) { |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
74 | return value.getDate() + '-' + (value.getMonth() + 1) + '-' + value.getFullYear(); |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
75 | }, |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
76 | toolTipFormatFunction: function(value) { |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
77 | var h = value.getHours(), m = value.getMinutes(); |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
78 | return value.getDate() + '-' + (value.getMonth() + 1) + '-' + value.getFullYear() + |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
79 | ' ' + (h < 10 ? '0' + h : h) + ':' + (m < 10 ? '0' + m : m); |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
80 | }, |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
81 | textRotationAngle: 45, |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
82 | howGridLines: false, |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
83 | rangeSelector: { |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
84 | size: 90, |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
85 | dataField: 'beer', |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
86 | serieType: 'line', |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
87 | gridLines: {visible: false}, |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
88 | } |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
89 | }, |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
90 | colorScheme: 'scheme01', |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
91 | seriesGroups: [ |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
92 | { |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
93 | type: 'area', |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
94 | valueAxis: { |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
95 | minValue: 0, |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
96 | maxValue: 100, |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
97 | displayValueAxis: false, |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
98 | description: 'Verwarm/Koel %' |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
99 | }, |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
100 | series: [ |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
101 | { dataField: 'cooler', lineWidth: 1, displayText: 'Koel %', opacity: 0.4 }, |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
102 | { dataField: 'heater', lineWidth: 1, displayText: 'Verwarm %', opacity: 0.3 } |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
103 | ] |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
104 | }, |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
105 | { |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
106 | type: 'spline', |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
107 | valueAxis: { |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
108 | minValue: 0, |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
109 | description: 'Graden C' |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
110 | }, |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
111 | series: [ |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
112 | { dataField: 'air', lineWidth: 1, displayText: 'Lucht' }, |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
113 | { dataField: 'beer', lineWidth: 2, displayText: 'Bier' }, |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
114 | { dataField: 'tlo', lineWidth: 1, displayText: 'Doel laag', opacity: 0.7 }, |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
115 | { dataField: 'thi', lineWidth: 1, displayText: 'Doel hoog', opacity: 0.7 }, |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
116 | { dataField: 'room', lineWidth: 1, displayText: 'Ruimte', opacity: 0.5 }, |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
117 | { dataField: 'chiller', lineWidth: 1, displayText: 'Koeler', color: '#0000bb' } |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
118 | ] |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
119 | } |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
120 | ] |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
121 | }; |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
122 | $('#fermenter_chart').jqxChart(settings); |
172 | 123 | |
527
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
124 | $('#print').click(function() { |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
125 | var content = $('#fermenter_chart')[0].outerHTML, |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
126 | newWindow = window.open('', '', 'width=865, height=425'), |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
127 | document = newWindow.document.open(), |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
128 | pageContent = |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
129 | '<!DOCTYPE html>' + |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
130 | '<html>' + |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
131 | '<head>' + |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
132 | '<link rel="stylesheet" href="jqwidgets/styles/jqx.base.css" type="text/css" />' + |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
133 | '<meta charset="utf-8" />' + |
602
10b61aacb1c1
New products field log_ispindel. Add check for ispindel log to crontasks.php Added log_ispindel to prod_edit, pprod_divide, prod_new and prod_duplicate. Renamed some log_fermentation vergisting names into klimaatkast.
Michiel Broek <mbroek@mbse.eu>
parents:
527
diff
changeset
|
134 | '<title>' + my_code + ' ' + my_name + ' klimaatkast</title>' + |
527
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
135 | '</head>' + |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
136 | '<body>' + content + '</body></html>'; |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
137 | document.write(pageContent); |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
138 | document.close(); |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
139 | newWindow.print(); |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
140 | }); |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
141 | $('#print').jqxButton({ template: 'primary', width: 125, theme: theme }); |
172 | 142 | |
527
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
143 | $('#pdfButton').click(function() { |
602
10b61aacb1c1
New products field log_ispindel. Add check for ispindel log to crontasks.php Added log_ispindel to prod_edit, pprod_divide, prod_new and prod_duplicate. Renamed some log_fermentation vergisting names into klimaatkast.
Michiel Broek <mbroek@mbse.eu>
parents:
527
diff
changeset
|
144 | $('#fermenter_chart').jqxChart('saveAsPDF', 'klimaatkast_' + my_code + '.pdf', getExportServer()); |
527
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
145 | }); |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
146 | $('#pdfButton').jqxButton({ template: 'primary', width: 125, theme: theme }); |
172 | 147 | |
527
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
148 | $('#pngButton').click(function() { |
602
10b61aacb1c1
New products field log_ispindel. Add check for ispindel log to crontasks.php Added log_ispindel to prod_edit, pprod_divide, prod_new and prod_duplicate. Renamed some log_fermentation vergisting names into klimaatkast.
Michiel Broek <mbroek@mbse.eu>
parents:
527
diff
changeset
|
149 | $('#fermenter_chart').jqxChart('saveAsPNG', 'klimaatkast_' + my_code + '.png', getExportServer()); |
527
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
150 | }); |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
151 | $('#pngButton').jqxButton({ template: 'primary', width: 125, theme: theme }); |
172 | 152 | |
527
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
153 | $('#Close').jqxButton({ template: 'success', width: 125, theme: theme }); |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
154 | $('#Close').click(function() { |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
155 | window.close(); |
9dfefad3ae1d
Code cleanup and manual compress
Michiel Broek <mbroek@mbse.eu>
parents:
494
diff
changeset
|
156 | }); |
172 | 157 | }); |
158 |