summaryrefslogtreecommitdiff
path: root/views/js
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2018-09-05 09:06:46 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2018-09-05 09:06:46 +0000
commit0b51c9bdc87bc1a8f6c859858e853fd47bb0a87c (patch)
tree469a75a0226bba2c6a123dc64e6e3a946f6f878d /views/js
parent7c5d7a4fcfe42fe8b7b4f022551be93fc266d270 (diff)
- Warenkorbwidget aktualisiert sich automatisch
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7136 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/js')
-rw-r--r--views/js/frontend.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/views/js/frontend.js b/views/js/frontend.js
index 67b69f5..487007a 100644
--- a/views/js/frontend.js
+++ b/views/js/frontend.js
@@ -16,6 +16,31 @@
} // wpsg_mod_basketteaser_add(produkt_id)
+ /**
+ * Aktualisiert ein eventuell eingebundenes Warenkorbwidget
+ */
+ function wpsg_refreshBasketWidget()
+ {
+
+ if (jQuery('.wpsg_basket_widget').length <= 0) return;
+
+ jQuery('.wpsg_basket_widget').html('<img class="loading" src="' + wpsg_ajax.img_ajaxloading + '" alt="' + wpsg_ajax.label_pleasewait + '" />');
+
+ jQuery.ajax( {
+ url: wpsg_ajax.url_basket,
+ data: {
+ 'wpsg[ajax]': 1,
+ 'wpsg[action]': 'widget'
+ },
+ success: function(data) {
+
+ jQuery('.wpsg_basket_widget').html(data);
+
+ }
+ } );
+
+ } // function wpsg_refreshBasketWidget()
+
function wpsg_customerquestion(url_redirect)
{