--- a/www/js/inv_fermentables.js Sat Mar 02 19:21:50 2019 +0100 +++ b/www/js/inv_fermentables.js Sun Mar 03 13:26:28 2019 +0100 @@ -200,9 +200,12 @@ renderstatusbar: function (statusbar) { var container = $("<div style='overflow: hidden; position: relative; margin: 5px;'></div>"); var addButton = $("<div style='float: right; margin-right: 15px;'><img style='position: relative; margin-top: 2px;' src='images/add.png'/><span style='margin-left: 4px; position: relative; top: -3px;'>Nieuw</span></div>"); + var 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>"); container.append(addButton); + container.append(impButton); statusbar.append(container); addButton.jqxButton({ theme: theme, width: 90, height: 20 }); + impButton.jqxButton({ theme: theme, width: 90, height: 20 }); // add new row. addButton.click(function (event) { editrow = -1; @@ -233,6 +236,10 @@ $("#tht_date").val(''); $("#popupWindow").jqxWindow('open'); }); + impButton.click(function (event) { + var url="import_ingredients.php?select=fermentables"; + window.location.href = url; + }); }, filterable: true, filtermode: 'excel',