From e729b3734d46bb1c4832a17ff08442df4acada32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Sat, 6 Sep 2014 10:05:58 +0200 Subject: [PATCH] Fix for selecting template variable value from typeahead using enter key, Closes #765 --- src/app/directives/templateParamSelector.js | 4 ++-- src/app/partials/submenu.html | 4 +++- src/app/partials/templating_editor.html | 4 +++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/app/directives/templateParamSelector.js b/src/app/directives/templateParamSelector.js index f05d6959198..545e2e89661 100644 --- a/src/app/directives/templateParamSelector.js +++ b/src/app/directives/templateParamSelector.js @@ -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; } }); diff --git a/src/app/partials/submenu.html b/src/app/partials/submenu.html index 029e11bfd15..42884a84058 100644 --- a/src/app/partials/submenu.html +++ b/src/app/partials/submenu.html @@ -21,7 +21,9 @@ VARIABLES
  • - {{variable.name}}: + + ${{variable.name}}: +
  • diff --git a/src/app/partials/templating_editor.html b/src/app/partials/templating_editor.html index b030f4358f2..90d1fb50d26 100644 --- a/src/app/partials/templating_editor.html +++ b/src/app/partials/templating_editor.html @@ -23,7 +23,9 @@
    - [[{{variable.name}}]] + + ${{variable.name}} + {{variable.query}}