mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fix for selecting template variable value from typeahead using enter key, Closes #765
This commit is contained in:
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user