| Index: dashboard/ui/js/common.js
|
| diff --git a/dashboard/ui/js/common.js b/dashboard/ui/js/common.js
|
| index d2daebb509a00ffcd3c8ebdb0ef0b8d1b1acd185..b728f5f12bb4bedc0ad4757654743b8ff563a878 100644
|
| --- a/dashboard/ui/js/common.js
|
| +++ b/dashboard/ui/js/common.js
|
| @@ -85,15 +85,18 @@ function ParseParams() {
|
|
|
| // Creates the URL constructed from the current pathname and the given params.
|
| function MakeURL(params) {
|
| - var url = window.location.pathname;
|
| - var sep = '?';
|
| - for (p in params) {
|
| - if (!p)
|
| - continue;
|
| - url = url + sep + p + '=' + params[p];
|
| - sep = '&';
|
| + var arr = [];
|
| + for (var p in params) {
|
| + if (typeof params[p] == 'object') {
|
| + // Repeated params, stored as hash like {valueA: 1, valueB: 1}
|
| + for (var r in params[p]) {
|
| + arr.push(p + '=' + r);
|
| + }
|
| + } else {
|
| + arr.push(p + '=' + params[p]);
|
| + }
|
| }
|
| - return url;
|
| + return window.location.pathname + '?' + arr.join('&');
|
| }
|
|
|
| // Returns a string describing an object, recursively. On the initial call,
|
|
|