From a0e0d9181ce3410762014b8b1165e48fb1f1319a Mon Sep 17 00:00:00 2001 From: Vincent Garcia Date: Wed, 27 Nov 2024 13:57:52 +0100 Subject: [PATCH 1/2] Prevent multiple ajax call --- views/js/gamification_bt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/js/gamification_bt.js b/views/js/gamification_bt.js index 4a839f0..801e42b 100644 --- a/views/js/gamification_bt.js +++ b/views/js/gamification_bt.js @@ -80,7 +80,7 @@ function gamificationTasks() fancybox.fancybox(); } - $(".preactivationLink").on('click', function(e) { + $(".preactivationLink").one('click', function(e) { e.preventDefault(); preactivationLinkClick($(this).attr('rel'), $(this).attr('href')); }); From 41d9c0ada700228bd4b5ad70a6758c568f62c1f7 Mon Sep 17 00:00:00 2001 From: Vincent Garcia Date: Wed, 27 Nov 2024 13:58:52 +0100 Subject: [PATCH 2/2] Bump version --- config.xml | 2 +- gamification.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.xml b/config.xml index c42f4a7..4c1ee7b 100644 --- a/config.xml +++ b/config.xml @@ -2,7 +2,7 @@ gamification - + diff --git a/gamification.php b/gamification.php index ebf873e..1b666b2 100644 --- a/gamification.php +++ b/gamification.php @@ -46,7 +46,7 @@ public function __construct() { $this->name = 'gamification'; $this->tab = 'administration'; - $this->version = '2.5.1'; + $this->version = '2.5.2'; $this->author = 'PrestaShop'; $this->module_key = 'c1187d1672d2a2d33fbd7d5c29f0d42e'; $this->ps_versions_compliancy = [