aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiederick de Vries <diederick@diederickdevries.net>2020-06-30 08:14:12 +0200
committerDiederick de Vries <diederick@diederickdevries.net>2020-06-30 08:14:12 +0200
commitc128ca04f920227c5218698347d3e67946282f74 (patch)
tree4e2c19f36afc1e80b5e64d21512fe7c83eaad37c
parentaf1d403a60c9cf9966761957ce645a3fa0aa7223 (diff)
downloadboodschapi-feat/default-lists.tar.gz
boodschapi-feat/default-lists.tar.bz2
boodschapi-feat/default-lists.zip
feature:remove copied groceries from category listsfeat/default-lists
-rw-r--r--src/main/resources/static/js/libcomposer.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/resources/static/js/libcomposer.js b/src/main/resources/static/js/libcomposer.js
index aa0ef1f..f2762aa 100644
--- a/src/main/resources/static/js/libcomposer.js
+++ b/src/main/resources/static/js/libcomposer.js
@@ -293,12 +293,15 @@ function copyWeeklyBoughtItems()
293 dataType: "json" 293 dataType: "json"
294 }); 294 });
295 295
296 // Reloading the entire list to make absolutely sure the shopping list is accurate. 296 ajax.done(function(response)
297 ajax.done(function()
298 { 297 {
299 $("#shoppinglistwrapper").load(getContextPath() + "composer?weeknr=" + weeknr + " #shoppinglists", function () 298 $("#shoppinglistwrapper").load(getContextPath() + "composer?weeknr=" + weeknr + " #shoppinglists", function ()
300 { 299 {
301 initShoppingList(); 300 initShoppingList();
301 for (var i = 0; i++; i < response.length)
302 {
303 $("li#" + response[i].grocery.id + ".grocery").hide();
304 }
302 }); 305 });
303 }); 306 });
304} 307}