diff -r b316b88ebe12 -r f6fafccd8a6d www/js/inv_miscs.js --- a/www/js/inv_miscs.js Sat Mar 02 19:21:50 2019 +0100 +++ b/www/js/inv_miscs.js Sun Mar 03 13:26:28 2019 +0100 @@ -178,9 +178,12 @@ renderstatusbar: function (statusbar) { var container = $("
"); var addButton = $("
Nieuw
"); + var impButton = $("
Import
"); 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; @@ -199,6 +202,10 @@ $("#tht_date").val(''); $("#popupWindow").jqxWindow('open'); }); + impButton.click(function (event) { + var url="import_ingredients.php?select=miscs"; + window.location.href = url; + }); }, filterable: true, filtermode: 'excel',