www/js/inv_equipments.js

changeset 563
acdd54144838
parent 528
202272a28052
child 645
3b1510050c9b
equal deleted inserted replaced
562:ee28b3303da2 563:acdd54144838
224 showstatusbar: true, 224 showstatusbar: true,
225 renderstatusbar: function(statusbar) { 225 renderstatusbar: function(statusbar) {
226 var addButton, container = $('<div style="overflow: hidden; position: relative; margin: 5px;"></div>'); 226 var addButton, container = $('<div style="overflow: hidden; position: relative; margin: 5px;"></div>');
227 addButton = $('<div style="float: right; margin-right: 15px;"><img style="position: relative; margin-top: 2px;" ' + 227 addButton = $('<div style="float: right; margin-right: 15px;"><img style="position: relative; margin-top: 2px;" ' +
228 'src="images/add.png"/><span style="margin-left: 4px; position: relative; top: -3px;">Nieuw</span></div>'); 228 'src="images/add.png"/><span style="margin-left: 4px; position: relative; top: -3px;">Nieuw</span></div>');
229 expButton = $('<div style="float: right; margin-right: 50px;"><img style="position: relative; margin-top: 2px;" ' +
230 'src="images/database.png"/><span style="margin-left: 4px; position: relative; top: -3px;">Export</span></div>');
229 container.append(addButton); 231 container.append(addButton);
232 container.append(expButton);
230 statusbar.append(container); 233 statusbar.append(container);
231 addButton.jqxButton({ theme: theme, width: 90, height: 20 }); 234 addButton.jqxButton({ theme: theme, width: 90, height: 20 });
235 expButton.jqxButton({ theme: theme, width: 90, height: 20 });
232 // add new row. 236 // add new row.
233 addButton.click(function(event) { 237 addButton.click(function(event) {
234 editrow = -1; 238 editrow = -1;
235 $('#popupWindow').jqxWindow({ position: { x: 110, y: 30 } }); 239 $('#popupWindow').jqxWindow({ position: { x: 110, y: 30 } });
236 $('#name').val('Nieuwe brouwset'); 240 $('#name').val('Nieuwe brouwset');
256 $('#kettle_height').val(20); 260 $('#kettle_height').val(20);
257 $('#mash_volume').val(18); 261 $('#mash_volume').val(18);
258 $('#mash_max').val(6); 262 $('#mash_max').val(6);
259 $('#efficiency').val(75); 263 $('#efficiency').val(75);
260 $('#popupWindow').jqxWindow('open'); 264 $('#popupWindow').jqxWindow('open');
265 });
266 expButton.click(function(event) {
267 window.open('export_equipments.php');
261 }); 268 });
262 }, 269 },
263 filterable: false, 270 filterable: false,
264 ready: function() { 271 ready: function() {
265 $('#boil_size').on('change', function(event) { calcBatchVolume(); }); 272 $('#boil_size').on('change', function(event) { calcBatchVolume(); });

mercurial