]> git.agnieray.net Git - galette.git/commitdiff
Do not instanciate dropdowns when nochosen class is present
authorJohan Cwiklinski <johan@x-tnd.be>
Mon, 15 Jan 2024 19:54:35 +0000 (20:54 +0100)
committerJohan Cwiklinski <johan@x-tnd.be>
Mon, 15 Jan 2024 20:23:41 +0000 (21:23 +0100)
fixes #1760

ui/js/common.js

index d2ce3cadd94d757c26ef81d606f8a45ab3fff354..ca7042027549afa9efeca2b2c500d87c90c39615 100644 (file)
@@ -1,5 +1,5 @@
 /*!
- * Copyright © 2007-2014 The Galette Team
+ * Copyright © 2007-2024 The Galette Team
  *
  * This file is part of Galette (http://galette.tuxfamily.org).
  *
@@ -20,7 +20,7 @@
  * @package   Galette
  *
  * @author    Johan Cwiklinski <johan@x-tnd.be>
- * @copyright 2007-2014 The Galette Team
+ * @copyright 2007-2024 The Galette Team
  * @license   http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version
  * @link      http://galette.tuxfamily.org
  * @since     Available since 0.7dev - 2007-10-06
@@ -30,7 +30,7 @@
 var _bindFomanticComponents = function() {
     var
         $sidebar         = $('.ui.sidebar'),
-        $dropdown        = $('.ui.dropdown:not(.navigation, .autosubmit), select:not(.nochosen)'),
+        $dropdown        = $('.ui.dropdown:not(.navigation, .autosubmit, .nochosen), select:not(.nochosen)'),
         $dropdownNav     = $('.ui.dropdown.navigation'),
         $accordion       = $('.ui.accordion'),
         $checkbox        = $('.ui.checkbox, .ui.radio.checkbox'),