Commit e729b373 by Torkel Ödegaard

Fix for selecting template variable value from typeahead using enter key, Closes #765

parent 6337c775
......@@ -40,9 +40,9 @@ function (angular, app, _, $) {
minLength: 0,
items: 10,
updater: function(value) {
updateVariableValue(value);
$input.val(value);
$input.trigger('blur');
return '';
return value;
}
});
......
......@@ -21,7 +21,9 @@
<strong>VARIABLES</strong>
</li>
<li ng-repeat-start="variable in variables" class="grafana-target-segment template-param-name">
{{variable.name}}:
<span class="template-variable ">
${{variable.name}}:
</span>
</li>
<li ng-repeat-end template-param-selector>
......
......@@ -23,7 +23,9 @@
<table class="grafana-options-table">
<tr ng-repeat="variable in variables">
<td style="width: 1%">
[[{{variable.name}}]]
<span class="template-variable">
${{variable.name}}
</span>
</td>
<td class="max-width" style="max-width: 200px;">
{{variable.query}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment