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); } }