소스 검색

[core] Fix for multiple Ace link tooltips issue

Enrico Berti 10 년 전
부모
커밋
565522e
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

+ 1 - 2
desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

@@ -1819,7 +1819,6 @@ ko.bindingHandlers.aceEditor = {
               editor.renderer.setCursorStyle("pointer");
               this.setText(options.openIt);
               if ($.totalStorage("hue.ace.showLinkTooltips") == null || $.totalStorage("hue.ace.showLinkTooltips")) {
-                $(".ace_tooltip").show();
                 this.show(null, this.x + 10, this.y + 10);
               }
               this.link = token;
@@ -1836,7 +1835,7 @@ ko.bindingHandlers.aceEditor = {
 
         this.clear = function () {
           if (this.isClearable) {
-            $(".ace_tooltip").hide();
+            this.hide(); // hides the tooltip
             this.editor.session.removeMarker(this.marker);
             this.editor.renderer.setCursorStyle("");
             this.isClearable = false;