Merge pull request #2113 from tattsun/fix/ISSUE-2109-v1.2

ui: fix decode query params bug(ISSUE-2109)
pull/2116/head
Björn Rabenstein 8 years ago committed by GitHub
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…
Cancel
Save