2
0
forked from Wavyzz/dolibarr

Fix phpcs

This commit is contained in:
Laurent Destailleur
2023-06-08 10:16:58 +02:00
parent f00645c14a
commit d853a8f220

View File

@@ -1301,7 +1301,7 @@ $(document).ready(function() {
*/
<?php
if (empty($conf->global->MAIN_DISABLE_SELECT2_FOCUS_PROTECTION) && !defined('DISABLE_SELECT2_FOCUS_PROTECTION')) {
?>
?>
$(document).on('select2:open', () => {
console.log("Execute the focus (click on combo or use space when on component");
let allFound = document.querySelectorAll('.select2-container--open .select2-search__field');
@@ -1311,6 +1311,8 @@ $(document).on('select2:open', () => {
},0);
});
});
<?php } ?>
<?php
}
?>
// End of lib_head.js.php