From eb4343b2485dc88cbb4d4f1e5d53b03711b54e9f Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Tue, 6 Jun 2017 15:10:54 +0000 Subject: - Aufräumen / Funktionen in Produktansicht ohne Theme überarbeitet - Basket ohne Tabellen angefangen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6314 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/js/frontend.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'views/js') 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('
' + wpsg_ajax.label_pleasewait + '
'); + + } // 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) { -- cgit v1.2.3