Explorar o código

阻止事件冒泡

zhangxc %!s(int64=4) %!d(string=hai) anos
pai
achega
b196d46712
Modificáronse 2 ficheiros con 3 adicións e 3 borrados
  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'){