mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
#12113 Set select to close when an option is chosen
This commit is contained in:
parent
da935b6569
commit
d1f2fa4b44
@ -1668,6 +1668,12 @@ ui_require_jquery_file('json');
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
/* <![CDATA[ */
|
/* <![CDATA[ */
|
||||||
$(document).ready (function () {
|
$(document).ready (function () {
|
||||||
|
|
||||||
|
// Set close on select for module group.
|
||||||
|
$("#id_module_group").select2({
|
||||||
|
closeOnSelect: true
|
||||||
|
});
|
||||||
|
|
||||||
var disabledBecauseInPolicy = <?php echo '\''.((empty($disabledBecauseInPolicy) === true) ? '0' : '1').'\''; ?>;
|
var disabledBecauseInPolicy = <?php echo '\''.((empty($disabledBecauseInPolicy) === true) ? '0' : '1').'\''; ?>;
|
||||||
var idModuleType = '<?php echo $type_names_hash[$id_module_type]; ?>';
|
var idModuleType = '<?php echo $type_names_hash[$id_module_type]; ?>';
|
||||||
if (idModuleType != '') {
|
if (idModuleType != '') {
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
/* global $, interval */
|
/* global $, interval */
|
||||||
$(document).ready(() => {
|
$(document).ready(() => {
|
||||||
|
// Set close on select.
|
||||||
|
$("#_credentials_").select2({
|
||||||
|
closeOnSelect: true
|
||||||
|
});
|
||||||
|
|
||||||
if (interval === "0") {
|
if (interval === "0") {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
$("#mode_interval")
|
$("#mode_interval")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user