--- a/www/js/inv_fermentables.js Thu Dec 05 13:25:54 2019 +0100 +++ b/www/js/inv_fermentables.js Thu Dec 05 22:47:40 2019 +0100 @@ -202,11 +202,15 @@ 'src="images/add.png"/><span style="margin-left: 4px; position: relative; top: -3px;">Nieuw</span></div>'); impButton = $('<div style="float: right; margin-right: 50px;"><img style="position: relative; margin-top: 2px;" ' + 'src="images/add.png"/><span style="margin-left: 4px; position: relative; top: -3px;">Import</span></div>'); + expButton = $('<div style="float: right; margin-right: 50px;"><img style="position: relative; margin-top: 2px;" ' + + 'src="images/database.png"/><span style="margin-left: 4px; position: relative; top: -3px;">Export</span></div>'); container.append(addButton); container.append(impButton); + container.append(expButton); statusbar.append(container); addButton.jqxButton({ theme: theme, width: 90, height: 20 }); impButton.jqxButton({ theme: theme, width: 90, height: 20 }); + expButton.jqxButton({ theme: theme, width: 90, height: 20 }); // add new row. addButton.click(function(event) { editrow = -1; @@ -240,6 +244,9 @@ impButton.click(function(event) { window.location.href = 'import_ingredients.php?select=fermentables'; }); + expButton.click(function(event) { + window.open('export_fermentables.php'); + }); }, filterable: true, filtermode: 'excel',