summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2023-04-20 14:47:29 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2023-04-20 14:47:29 +0000
commitc8269d710136cf17000f56ae2749c12674aa7b51 (patch)
tree5af5b13fe0f102c79432e05f3b2ab467fe4a02a1 /views
parent7431066f4b2e86bc3a0d6e0a099897c3a45a0dcc (diff)
- Preview
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@8278 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views')
-rw-r--r--views/mods/mod_productvariants/produkt_addedit_content_combination.phtml18
1 files changed, 12 insertions, 6 deletions
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 @@
<div class="panel-heading clearfix">
<h3 class="panel-title">
{{combination.label}}
- <span v-if="combination.id > 0" class="glyphicon glyphicon-pencil" @click.prevent="edit(combination.var_key)"></span>
- <span v-else class="glyphicon glyphicon-plus" @click.prevent="add(combination.var_key)"></span>
+ <span v-if="combination.id > 0" class="glyphicon glyphicon-pencil" @click.prevent="edit(combination)"></span>
+ <span v-else class="glyphicon glyphicon-plus" @click.prevent="add(combination)"></span>
</h3>
</div>
<div class="panel-body" v-if="combination.loaded">
@@ -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) => {