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

ui: fix decode query params bug(ISSUE-2109)
This commit is contained in:
Björn Rabenstein 2016-10-25 12:12:59 +02:00 committed by GitHub
commit 233a25a060
2 changed files with 38 additions and 39 deletions

File diff suppressed because one or more lines are too long

View file

@ -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