Browse Source

fix enter in sql_part_editor

Sven Klemm 7 years ago
parent
commit
5a307e80aa
1 changed files with 2 additions and 2 deletions
  1. 2 2
      public/app/core/components/sql_part/sql_part_editor.ts

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