JS: Deprecate Icinga.Loader.addUrlFlag() in favor of Icinga.Utils.addUrlFlag()
This commit is contained in:
parent
4d02d8f6d6
commit
7f8ee4f94d
|
@ -415,13 +415,19 @@
|
|||
return true;
|
||||
},
|
||||
|
||||
/**
|
||||
* Add the specified flag to the given URL
|
||||
*
|
||||
* @param {string} url
|
||||
* @param {string} flag
|
||||
*
|
||||
* @returns {string}
|
||||
*
|
||||
* @deprecated since version 2.8.0. Use {@link Icinga.Utils.addUrlFlag()} instead
|
||||
*/
|
||||
addUrlFlag: function(url, flag)
|
||||
{
|
||||
if (url.match(/\?/)) {
|
||||
return url + '&' + flag;
|
||||
} else {
|
||||
return url + '?' + flag;
|
||||
}
|
||||
return this.icinga.utils.addUrlFlag(url, flag);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue