diff --git a/config.xml b/config.xml index cf023f0..e5cae46 100644 --- a/config.xml +++ b/config.xml @@ -2,7 +2,7 @@ ps_imageslider - + diff --git a/ps_imageslider.php b/ps_imageslider.php index e79f9a9..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); @@ -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", 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} -
+