From 9258f4eecda3313af916f61b85399ad03cea0e92 Mon Sep 17 00:00:00 2001 From: Kurt Riddlesperger Date: Fri, 11 Oct 2019 12:15:59 -0500 Subject: [PATCH] viewjs consume: adjust specific_stock_entry --- public/viewjs/consume.js | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/public/viewjs/consume.js b/public/viewjs/consume.js index 1a7bffb4..6a3f8e48 100644 --- a/public/viewjs/consume.js +++ b/public/viewjs/consume.js @@ -257,25 +257,10 @@ Grocy.Components.ProductPicker.GetPicker().on('change', function(e) { stockEntries.forEach(stockEntry => { - var openTxt = __t("Not opened"); - if (stockEntry.open == 1) - { - openTxt = __t("Opened"); - } - - for (i = 0; i < stockEntry.amount; i++) - { - // Do this only for the first 50 entries to prevent a very long loop (is more anytime needed)? - if (i > 50) - { - break; - } - - $("#specific_stock_entry").append($("