From d5bc4c87d919d7a363f085b620770ec433cf2592 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Thu, 31 Mar 2022 21:57:52 +0200 Subject: [PATCH] Affichage + animations jquery okay --- module/gallery/view/gallery/gallery.css | 4 ++-- module/gallery/view/option/option.js.php | 26 ++++++++++++++++++++++++ module/gallery/view/option/option.php | 2 +- 3 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 module/gallery/view/option/option.js.php diff --git a/module/gallery/view/gallery/gallery.css b/module/gallery/view/gallery/gallery.css index 80f5e43d..8d127e48 100644 --- a/module/gallery/view/gallery/gallery.css +++ b/module/gallery/view/gallery/gallery.css @@ -12,10 +12,10 @@ * @link http://zwiicms.fr/ */ -div #topBackPosition .bottom { +#topBackPosition.bottom { display: none; } -div #bottomBackPosition .top { +#bottomBackPosition.top{ display: none; } diff --git a/module/gallery/view/option/option.js.php b/module/gallery/view/option/option.js.php new file mode 100644 index 00000000..067cc4db --- /dev/null +++ b/module/gallery/view/option/option.js.php @@ -0,0 +1,26 @@ +/** + * This file is part of Zwii. + * + * For full copyright and license information, please see the LICENSE + * file that was distributed with this source code. + * + * @author Rémi Jean + * @copyright Copyright (C) 2008-2018, Rémi Jean + * @author Frédéric Tempez + * @copyright Copyright (C) 2018-2022, Frédéric Tempez + * @license GNU General Public License, version 3 + * @link http://zwiicms.fr/ + */ + +/** + * Gestion des événements + */ + +// Activation des options pour les galeries non uniques +$("#galleryOptionShowUniqueGallery").click(function() { + if ($(this).prop("checked")) { + $("#galleryOptionBackPosition, #galleryOptionBackAlign").prop( "disabled", true ); + } else { + $("#galleryOptionBackPosition, #galleryOptionBackAlign").prop( "disabled", false ); + } +}); diff --git a/module/gallery/view/option/option.php b/module/gallery/view/option/option.php index 8817b906..50a647ea 100644 --- a/module/gallery/view/option/option.php +++ b/module/gallery/view/option/option.php @@ -25,7 +25,7 @@ ]); ?> -
+
'Position du bouton de retour à l\'index des galeries',