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, _, $) { ...@@ -40,9 +40,9 @@ function (angular, app, _, $) {
minLength: 0, minLength: 0,
items: 10, items: 10,
updater: function(value) { updater: function(value) {
updateVariableValue(value); $input.val(value);
$input.trigger('blur'); $input.trigger('blur');
return ''; return value;
} }
}); });
......
...@@ -21,7 +21,9 @@ ...@@ -21,7 +21,9 @@
<strong>VARIABLES</strong> <strong>VARIABLES</strong>
</li> </li>
<li ng-repeat-start="variable in variables" class="grafana-target-segment template-param-name"> <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>
<li ng-repeat-end template-param-selector> <li ng-repeat-end template-param-selector>
......
...@@ -23,7 +23,9 @@ ...@@ -23,7 +23,9 @@
<table class="grafana-options-table"> <table class="grafana-options-table">
<tr ng-repeat="variable in variables"> <tr ng-repeat="variable in variables">
<td style="width: 1%"> <td style="width: 1%">
[[{{variable.name}}]] <span class="template-variable">
${{variable.name}}
</span>
</td> </td>
<td class="max-width" style="max-width: 200px;"> <td class="max-width" style="max-width: 200px;">
{{variable.query}} {{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