Showing
1 changed file
with
10 additions
and
11 deletions
@@ -419,15 +419,15 @@ require("../util/jquery-ui.min"); | @@ -419,15 +419,15 @@ require("../util/jquery-ui.min"); | ||
419 | } | 419 | } |
420 | } | 420 | } |
421 | }); | 421 | }); |
422 | - // 不支持选中 | ||
423 | - // $(document).on("click",".edui-image-product .edui-product-content .edui-image-pic",function(){ | ||
424 | - // if ($(this).parent().hasClass("active-product")) { | ||
425 | - // $(this).parent().removeClass("active-product"); | ||
426 | - // } | ||
427 | - // else { | ||
428 | - // $(this).parent().addClass("active-product"); | ||
429 | - // } | ||
430 | - // }); | 422 | + |
423 | + $(document).on("click",".edui-image-product .edui-product-content .edui-image-pic",function(){ | ||
424 | + if ($(this).parent().hasClass("active-product")) { | ||
425 | + $(this).parent().removeClass("active-product"); | ||
426 | + } | ||
427 | + else { | ||
428 | + $(this).parent().addClass("active-product"); | ||
429 | + } | ||
430 | + }); | ||
431 | } | 431 | } |
432 | } | 432 | } |
433 | } | 433 | } |
@@ -511,8 +511,7 @@ require("../util/jquery-ui.min"); | @@ -511,8 +511,7 @@ require("../util/jquery-ui.min"); | ||
511 | sel = ".edui-image-searchRes .edui-image-pic"; | 511 | sel = ".edui-image-searchRes .edui-image-pic"; |
512 | }else{ | 512 | }else{ |
513 | // sel = ".edui-product-content .edui-image-pic.active-product"; | 513 | // sel = ".edui-product-content .edui-image-pic.active-product"; |
514 | - // sel = ".edui-product-content .edui-image-item.active-product .edui-image-pic "; | ||
515 | - sel = ".edui-product-content .edui-image-pic "; | 514 | + sel = ".edui-product-content .edui-image-item.active-product .edui-image-pic "; |
516 | } | 515 | } |
517 | 516 | ||
518 | var list = Base.getAllPic(sel, $w, editor); | 517 | var list = Base.getAllPic(sel, $w, editor); |
-
Please register or login to post a comment