Merge pull request #1844 from alicebob/lessnoise
don't store empty values in the URL
This commit is contained in:
commit
49e317333c
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) {
|
||||
var name = element.name;
|
||||
if ($.inArray(name, optionInputs) >= 0) {
|
||||
options[name] = element.value;
|
||||
if (element.value.length > 0) {
|
||||
options[name] = element.value;
|
||||
}
|
||||
}
|
||||
});
|
||||
options.expr = self.expr.val();
|
||||
|
|
Loading…
Reference in New Issue