diff --git a/module/gallery/gallery.php b/module/gallery/gallery.php index c6607fb9..4e783539 100644 --- a/module/gallery/gallery.php +++ b/module/gallery/gallery.php @@ -610,7 +610,7 @@ class gallery extends common { // Tri des images switch ($this->getData(['module', $this->getUrl(0), 'content', $this->getUrl(2), 'config', 'sort'])) { case self::SORT_HAND: - $positions = $this->getData(['module',$this->getUrl(0), $this->getUrl(2),'positions']); + $positions = $this->getData(['module',$this->getUrl(0),'content', $this->getUrl(2),'positions']); if ($positions) { foreach ($positions as $key => $value) { if (array_key_exists($key,self::$pictures)) { @@ -887,7 +887,7 @@ class gallery extends common { mkdir (self::DATADIRECTORY . $this->getUrl(0), 0755, true); } $this->setData(['module', $this->getUrl(0), 'config', [ - 'showUniqueGallery' => $this->getinput('galleryOptionShowUniqueGallery', helper::FILTER_BOOLEAN) + 'showUniqueGallery' => $this->getinput('galleriesOptionShowUniqueGallery', helper::FILTER_BOOLEAN) ]]); // Valeurs en sortie $this->addOutput([ diff --git a/module/gallery/view/edit/edit.js.php b/module/gallery/view/edit/edit.js.php index b1de55bb..9b0eadb3 100644 --- a/module/gallery/view/edit/edit.js.php +++ b/module/gallery/view/edit/edit.js.php @@ -65,11 +65,7 @@ $( document ).ready(function() { $("#galleryTable").tableDnD({ onDrop: function(table, row) { $("#galleryEditFormResponse").val($.tableDnD.serialize()); - }, - onDragStop : function(table, row) { - // Sauvegarde le tri sortPictures(); - $("#galleryEditFormResponse").val(""); }, serializeRegexp: "" }); diff --git a/module/gallery/view/option/option.php b/module/gallery/view/option/option.php index 7b8a9579..222b740a 100644 --- a/module/gallery/view/option/option.php +++ b/module/gallery/view/option/option.php @@ -1,14 +1,14 @@ - +
- helper::baseUrl() . $this->getUrl(0) . '/config', 'ico' => 'left', 'value' => 'Retour' ]); ?>
- +
@@ -17,7 +17,7 @@

Galerie unique

- count($this->getData(['module', $this->getUrl(0), 'content'])) === 1 ? $this->getData(['module', $this->getUrl(0), 'theme', 'showUniqueGallery']) : false,