mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
N°3657 - Replace calls to deprecate jQuery methods (".click(callback)" to ".on('click', callback)")
This commit is contained in:
@@ -1291,7 +1291,7 @@ $('#about_box').dialog({
|
||||
title: '$sDialogTitle',
|
||||
close: function() { $(this).remove(); }
|
||||
});
|
||||
$("#collapse_support_details").click(function() {
|
||||
$("#collapse_support_details").on('click', function() {
|
||||
$("#support_details").slideToggle('normal');
|
||||
$("#collapse_support_details").toggleClass('open');
|
||||
});
|
||||
@@ -1382,7 +1382,7 @@ EOF
|
||||
$oPage->add('<li><b>'.$oLicense->product.'</b>, © '.$oLicense->author.' is licensed under the <b>'.$oLicense->license_type.' license</b>. (<a id="toggle_'.$index.'" class="CollapsibleLabel" style="cursor:pointer;">Details</a>)');
|
||||
$oPage->add('<div id="license_'.$index.'" class="license_text" style="display:none;overflow:auto;max-height:10em;font-size:small;border:1px #696969 solid;margin-bottom:1em; margin-top:0.5em;padding:0.5em;">'.$oLicense->text.'</div>');
|
||||
$oPage->add_ready_script(<<<JS
|
||||
$("#toggle_$index").click( function() {
|
||||
$("#toggle_$index").on('click', function() {
|
||||
$(this).toggleClass('open');
|
||||
$("#license_$index").slideToggle("normal");
|
||||
});
|
||||
|
||||
@@ -254,7 +254,7 @@ try
|
||||
$oDownloadButton = ButtonUIBlockFactory::MakeForAlternativePrimaryAction('fas fa-chevron-left', Dict::S('Back to audit results'), "./audit.php?".$oAppContext->GetForLink());
|
||||
|
||||
$oP->add_ready_script("$('a[href*=\"webservices/export.php?expression=\"]').attr('href', '".$sExportUrl."&filename=audit.csv".$sAdvanced."');");
|
||||
$oP->add_ready_script("$('#1 :checkbox').removeAttr('onclick').click( function() { var sAdvanced = ''; if (this.checked) sAdvanced = '&advanced=1'; window.location.href='$sExportUrl'+sAdvanced; } );");
|
||||
$oP->add_ready_script("$('#1 :checkbox').removeAttr('onclick').on('click', function() { var sAdvanced = ''; if (this.checked) sAdvanced = '&advanced=1'; window.location.href='$sExportUrl'+sAdvanced; } );");
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user