mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
N°3657 - Replace calls to deprecate jQuery methods (".click(callback)" to ".on('click', callback)")
This commit is contained in:
@@ -143,7 +143,7 @@ class SetupPage extends NiceWebPage
|
||||
$this->p("<li>$sItem</li>\n");
|
||||
}
|
||||
$this->p('</ul>');
|
||||
$this->add_ready_script("$('#{$sId}').click( function() { $(this).toggleClass('open'); $('#{$sId}_list').toggle();} );\n");
|
||||
$this->add_ready_script("$('#{$sId}').on('click', function() { $(this).toggleClass('open'); $('#{$sId}_list').toggle();} );\n");
|
||||
if (!$bOpen)
|
||||
{
|
||||
$this->add_ready_script("$('#{$sId}').toggleClass('open'); $('#{$sId}_list').toggle();\n");
|
||||
|
||||
Reference in New Issue
Block a user