diff --git a/.doc/phpdoc-templates/combodo-wiki/graphs/class.html.twig b/.doc/phpdoc-templates/combodo-wiki/graphs/class.html.twig
index 69b92fdca..c0c48af53 100644
--- a/.doc/phpdoc-templates/combodo-wiki/graphs/class.html.twig
+++ b/.doc/phpdoc-templates/combodo-wiki/graphs/class.html.twig
@@ -23,7 +23,7 @@
$(document).ready(function() {
$("#viewer").iviewer({src: '{{ path('graphs/classes.svg') }}', zoom_animation: false});
- $('#viewer img').bind('dragstart', function(event){
+ $('#viewer img').on('dragstart', function(event){
event.preventDefault();
});
$(window).resize();
diff --git a/application/cmdbabstract.class.inc.php b/application/cmdbabstract.class.inc.php
index ebdad6b02..4d3b4e7ba 100644
--- a/application/cmdbabstract.class.inc.php
+++ b/application/cmdbabstract.class.inc.php
@@ -2931,11 +2931,11 @@ JS
$sStatesSelection .= '';
$sStatesSelection .= '';
$oPage->add_ready_script(<<m_iFormId}').change( function() {
+$('.state_select_{$this->m_iFormId}').on('change', function() {
if ($('#obj_state_orig').val() != $(this).val()) {
$('.state_select_{$this->m_iFormId}').val($(this).val());
$('#form_{$this->m_iFormId}').data('force_submit', true);
- $('#form_{$this->m_iFormId}').submit();
+ $('#form_{$this->m_iFormId}').trigger('submit');
}
});
JS
diff --git a/application/forms.class.inc.php b/application/forms.class.inc.php
index 890475e4f..9877d9d84 100644
--- a/application/forms.class.inc.php
+++ b/application/forms.class.inc.php
@@ -363,7 +363,7 @@ $('#$sDialogId').dialog({
buttons: [
{ text: "$sOkButtonLabel", click: function() {
var oForm = $(this).closest('.ui-dialog').find('form');
- oForm.submit();
+ oForm.trigger('submit');
if (AnimateDlgButtons)
{
sFormId = oForm.attr('id');
diff --git a/core/attributedef.class.inc.php b/core/attributedef.class.inc.php
index 1ca330f8f..b24073617 100644
--- a/core/attributedef.class.inc.php
+++ b/core/attributedef.class.inc.php
@@ -13037,7 +13037,7 @@ class AttributeRedundancySettings extends AttributeDBField
$sEditValue = $bSelected ? $iCurrentValue : '';
$sValue = '';
// To fix an issue on Firefox: focus set to the option (because the input is within the label for the option)
- $oPage->add_ready_script("\$('[name=\"$sName\"]').on('click', function(){var me=this; setTimeout(function(){\$(me).focus();}, 100);});");
+ $oPage->add_ready_script("\$('[name=\"$sName\"]').on('click', function(){var me=this; setTimeout(function(){\$(me).trigger('focus');}, 100);});");
}
else
{
@@ -13052,7 +13052,7 @@ class AttributeRedundancySettings extends AttributeDBField
$sEditValue = $bSelected ? $iCurrentValue : '';
$sValue = '';
// To fix an issue on Firefox: focus set to the option (because the input is within the label for the option)
- $oPage->add_ready_script("\$('[name=\"$sName\"]').on('click', function(){var me=this; setTimeout(function(){\$(me).focus();}, 100);});");
+ $oPage->add_ready_script("\$('[name=\"$sName\"]').on('click', function(){var me=this; setTimeout(function(){\$(me).trigger('focus');}, 100);});");
}
else
{
diff --git a/datamodels/2.x/authent-cas/view/cas_sso_button.html.twig b/datamodels/2.x/authent-cas/view/cas_sso_button.html.twig
index a839b135e..c2f044510 100644
--- a/datamodels/2.x/authent-cas/view/cas_sso_button.html.twig
+++ b/datamodels/2.x/authent-cas/view/cas_sso_button.html.twig
@@ -1,7 +1,7 @@
{# @copyright Copyright (C) 2010-2024 Combodo SAS #}
{# @license http://opensource.org/licenses/AGPL-3.0 #}
-