Merge branch 'ent-12113-desplegable-de-credenciales-discovery-se-queda-abierto-tras-seleccionar' into 'develop'

Ent 12113 desplegable de credenciales discovery se queda abierto tras seleccionar

See merge request artica/pandorafms!6504
This commit is contained in:
Rafael Ameijeiras 2023-10-17 12:27:17 +00:00
commit 55c5251a67
2 changed files with 11 additions and 0 deletions

View File

@ -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 != '') {

View File

@ -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")