From 5a307e80aaea980035ea1c77c88d77969f97fb61 Mon Sep 17 00:00:00 2001 From: Sven Klemm Date: Mon, 9 Jul 2018 22:43:50 +0200 Subject: [PATCH] fix enter in sql_part_editor --- public/app/core/components/sql_part/sql_part_editor.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/core/components/sql_part/sql_part_editor.ts b/public/app/core/components/sql_part/sql_part_editor.ts index b002e19763a..1b0210af1e7 100644 --- a/public/app/core/components/sql_part/sql_part_editor.ts +++ b/public/app/core/components/sql_part/sql_part_editor.ts @@ -56,7 +56,7 @@ export function sqlPartEditorDirective($compile, templateSrv) { function inputBlur($input, paramIndex) { cancelBlur = setTimeout(function() { - switchToLink.call(this, $input, paramIndex); + switchToLink($input, paramIndex); }, 200); } @@ -81,7 +81,7 @@ export function sqlPartEditorDirective($compile, templateSrv) { function inputKeyPress(paramIndex, e) { /*jshint validthis:true */ if (e.which === 13) { - switchToLink.call(this, paramIndex); + switchToLink($(this), paramIndex); } }