From 669375e3c19b968c7906380a94eedb62555331d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Hlav=C3=A1=C4=8Dek?= Date: Wed, 25 Sep 2024 17:03:26 +0200 Subject: [PATCH 1/4] Use normal slide ID --- views/templates/hook/list.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/templates/hook/list.tpl b/views/templates/hook/list.tpl index 1e34f15..347211c 100644 --- a/views/templates/hook/list.tpl +++ b/views/templates/hook/list.tpl @@ -28,7 +28,7 @@
{foreach from=$slides item=slide} -
+
From 9250d4c5da626ddec7fab4ed143d7859d4ac864e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Hlav=C3=A1=C4=8Dek?= Date: Wed, 25 Sep 2024 17:04:09 +0200 Subject: [PATCH 2/4] Use proper slide array --- ps_imageslider.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ps_imageslider.php b/ps_imageslider.php index e79f9a9..578ab09 100644 --- a/ps_imageslider.php +++ b/ps_imageslider.php @@ -666,12 +666,11 @@ public function headerHTML() new Sortable(slideList[0], { animation: 150, onUpdate: function (event) { - var sortableIdsAsTableString = this.toArray(); - var sortableIdsAsData = sortableIdsAsTableString.map((x) => x.slice(-1)); + var slideIdList = this.toArray(); var ajaxCallParameters = { ajax: true, action: "updateSlidesPosition", - slides: sortableIdsAsData + slides: slideIdList }; $.ajax({ type: "POST", From a9ec8ed417c1387c02b39b47ea11db840de4ea53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Hlav=C3=A1=C4=8Dek?= Date: Wed, 25 Sep 2024 17:05:58 +0200 Subject: [PATCH 3/4] Bump version --- config.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.xml b/config.xml index cf023f0..e5cae46 100644 --- a/config.xml +++ b/config.xml @@ -2,7 +2,7 @@ ps_imageslider - + From 3237547f702018bdeec34a6b1d869fcd82296910 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Hlav=C3=A1=C4=8Dek?= Date: Wed, 25 Sep 2024 17:06:00 +0200 Subject: [PATCH 4/4] Bump version --- ps_imageslider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ps_imageslider.php b/ps_imageslider.php index 578ab09..832cc01 100644 --- a/ps_imageslider.php +++ b/ps_imageslider.php @@ -52,7 +52,7 @@ public function __construct() { $this->name = 'ps_imageslider'; $this->tab = 'front_office_features'; - $this->version = '3.2.0'; + $this->version = '3.2.1'; $this->author = 'PrestaShop'; $this->need_instance = 0; $this->secure_key = Tools::hash($this->name);