mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
don't store empty values in the URL
This commit is contained in:
parent
e980913cd6
commit
afc5873b0e
File diff suppressed because one or more lines are too long
|
@ -219,7 +219,9 @@ Prometheus.Graph.prototype.getOptions = function() {
|
||||||
self.queryForm.find("input").each(function(index, element) {
|
self.queryForm.find("input").each(function(index, element) {
|
||||||
var name = element.name;
|
var name = element.name;
|
||||||
if ($.inArray(name, optionInputs) >= 0) {
|
if ($.inArray(name, optionInputs) >= 0) {
|
||||||
options[name] = element.value;
|
if (element.value.length > 0) {
|
||||||
|
options[name] = element.value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
options.expr = self.expr.val();
|
options.expr = self.expr.val();
|
||||||
|
|
Loading…
Reference in a new issue