summaryrefslogtreecommitdiff
path: root/views/js/frontend.js
diff options
context:
space:
mode:
Diffstat (limited to 'views/js/frontend.js')
-rw-r--r--views/js/frontend.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/views/js/frontend.js b/views/js/frontend.js
index b4b0119..e354123 100644
--- a/views/js/frontend.js
+++ b/views/js/frontend.js
@@ -38,6 +38,28 @@
return false;
}
+
+ /**
+ * Sperrt die Funktionen im Produkttemplate, während einer Ajax Aktion
+ * @param template_index
+ */
+ function wpsg_blockProductTemplate(template_index)
+ {
+
+ jQuery('#wpsg_produktform_' + template_index).append('<div class="wpsg_product_layer"><img src="' + wpsg_ajax.img_ajaxloading + '" alt="' + wpsg_ajax.label_pleasewait + '" /></div>');
+
+ } // function wpsg_blockProductTemplate(template_index)
+
+ /**
+ * Entsperrt die Funktionen im Produkttemplate nach einer Ajax Aktion
+ * @param template_index
+ */
+ function wpsg_unblockProductTemplate(template_index)
+ {
+
+ jQuery('#wpsg_produktform_' + template_index + ' .wpsg_product_layer').remove();
+
+ } // function wpsg_unblockProductTemplate(template_index)
wpsg_numberformat = function (number, decimals, dec_point, thousands_sep)
{