From c8269d710136cf17000f56ae2749c12674aa7b51 Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Thu, 20 Apr 2023 14:47:29 +0000 Subject: - Preview git-svn-id: https://[internal]/wordpress/plugins/wpsg4@8278 0d5edaf7-2b12-4e95-93f4-047927463d4b --- .../produkt_addedit_content_combination.phtml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'views') diff --git a/views/mods/mod_productvariants/produkt_addedit_content_combination.phtml b/views/mods/mod_productvariants/produkt_addedit_content_combination.phtml index 10566f7..00600ce 100644 --- a/views/mods/mod_productvariants/produkt_addedit_content_combination.phtml +++ b/views/mods/mod_productvariants/produkt_addedit_content_combination.phtml @@ -68,8 +68,8 @@

{{combination.label}} - - + +

@@ -223,10 +223,13 @@ combination.loading = true; } - const add = (combination_key) => { + const add = (combination) => { + combination.loaded = true; + combination.loading = true; + xhr('add', { - var_key: combination_key, + var_key: combination.var_key, product_id: product_id.value }, (response) => { @@ -245,10 +248,13 @@ }); }; - const edit = (combination_key) => { + const edit = (combination) => { + combination.loaded = true; + combination.loading = true; + xhr('edit', { - var_key: combination_key, + var_key: combination.var_key, product_id: product_id.value }, (response) => { -- cgit v1.2.3