Browse Source

阻止事件冒泡

zhangxc 4 years ago
parent
commit
b196d46712
2 changed files with 3 additions and 3 deletions
  1. 2 2
      src/js/graphMap.js
  2. 1 1
      src/js/medicalTermMap.js

+ 2 - 2
src/js/graphMap.js

@@ -74,7 +74,7 @@ function drawGraph(data,resultShowId) {
              width: 766,
              verticalAlign:'top',
              borderColor:'#E6E6E6',
-             borderWidth:'1px',
+             borderTopWidth:1,
             padding:[20, 1000, 0, 1000],
             backgroundColor: "#FFFFFF",
             // orient: 'vertical',
@@ -171,7 +171,7 @@ function drawGraph(data,resultShowId) {
         $('.legendSlideUp').toggleClass('legendSlideUp')
         $('.legendIcon').css('display',"none")
     }
-    $('.legendIconImg').on('click',function(e){
+    $('.legendIconImg').off("click").on('click',function(e){
         e.stopPropagation()
         $('.legendIconImg').toggleClass('legendSlideUp')
         if(option.legend[0].type=='scroll'){

+ 1 - 1
src/js/medicalTermMap.js

@@ -245,7 +245,7 @@ function drawGraph(data,resultShowId) {
         $('.legendSlideUp').toggleClass('legendSlideUp')
         $('.legendIcon').css('display',"none")
     }
-    $('.legendIconImg').on('click',function(e){
+    $('.legendIconImg').off("click").on('click',function(e){
         e.stopPropagation()
         $('.legendIconImg').toggleClass('legendSlideUp')
         if(option.legend[0].type=='scroll'){