mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-26 13:11:11 -08:00
ISSUE-2109 ui: fix decode query params bug
This commit is contained in:
parent
ec203a23e2
commit
68e20bd9ac
File diff suppressed because one or more lines are too long
|
@ -741,9 +741,8 @@ Prometheus.Page.QueryParamHelper.prototype.parseQueryParamsOfOneGraph = function
|
|||
queryParams.forEach(function(tuple) {
|
||||
var optionNameAndValue = tuple.split('=');
|
||||
var optionName = optionNameAndValue[0];
|
||||
var optionValue = decodeURIComponent(optionNameAndValue[1]);
|
||||
|
||||
optionValue = optionValue.replace(/\+/g, " "); // $.param turns spaces into pluses
|
||||
var optionValue = decodeURIComponent(optionNameAndValue[1].replace(/\+/g, " "));
|
||||
|
||||
if (optionName == "tab") {
|
||||
optionValue = parseInt(optionValue); // tab is integer
|
||||
|
|
Loading…
Reference in a new issue