mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-30 22:18:46 +02:00
Make auto_reload work on OQL menus
Fix for table configuration for tables resutling from an OQL menu SVN:trunk[2531]
This commit is contained in:
@@ -840,6 +840,16 @@ class utils
|
||||
{
|
||||
return $sProposed;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Some characters cause troubles with jQuery when used inside DOM IDs, so let's replace them by the safe _ (underscore)
|
||||
* @param string $sId The ID to sanitize
|
||||
* @return string The sanitized ID
|
||||
*/
|
||||
static public function GetSafeId($sId)
|
||||
{
|
||||
return str_replace(array(':', '[', ']', '+', '-'), '_', $sId);
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user