mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-22 00:32:16 +02:00
N°4176 - Portal: Deprecate "AddParameterToUrl" function
This commit is contained in:
@@ -420,8 +420,13 @@
|
||||
{
|
||||
return '{{ app['url_generator'].generate('p_session_message_add')|raw }}';
|
||||
};
|
||||
// Helper to add a parameter to an url
|
||||
// TODO 3.0.0: Move to CombodoGlobalToolbox and deprecate this one
|
||||
/**
|
||||
* @param sUrl {string} The URL to append the new param to
|
||||
* @param sParamName {string} Name of the parameter
|
||||
* @param sParamValue {string} Value of the param, needs to be already URL encoded
|
||||
* @return {string} The sUrl parameters with the sParamName / sParamValue append at the right place
|
||||
* @deprecated 3.0.0 N°4176
|
||||
*/
|
||||
var AddParameterToUrl = function(sUrl, sParamName, sParamValue)
|
||||
{
|
||||
sUrl += (sUrl.split('?')[1] ? '&':'?') + sParamName + '=' + sParamValue;
|
||||
|
||||
Reference in New Issue
Block a user