mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-10 07:34:04 -08:00
Merge pull request #2113 from tattsun/fix/ISSUE-2109-v1.2
ui: fix decode query params bug(ISSUE-2109)
This commit is contained in:
commit
233a25a060
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