复制粘贴图片相关
This commit is contained in:
parent
be97675aed
commit
2c7a964470
|
@ -416,6 +416,7 @@ function uploadpic(piclist,myself) {
|
|||
that.attr("src", str[tIndex]);
|
||||
that.attr("data-ke-src", str[tIndex]);
|
||||
|
||||
//复制过来带的链接class等都要去掉 和视频图片有关系
|
||||
that.removeAttr("class");
|
||||
that.parent().removeAttr("class");
|
||||
that.parent().removeAttr("href");
|
||||
|
|
|
@ -1019,6 +1019,7 @@ function showNormalImage(id) {
|
|||
$(image).attr('src',_src);
|
||||
return;
|
||||
}
|
||||
//无格式的图片不让点击显示大图,显示的话会有问题
|
||||
var tmpsrc = image.attr('src');
|
||||
if (tmpsrc.indexOf('.gif') >= 0 || tmpsrc.indexOf('.jpg') >= 0 || tmpsrc.indexOf('.jpeg') >= 0 || tmpsrc.indexOf('.png') >= 0 || tmpsrc.indexOf('.bmp') >= 0 || tmpsrc.indexOf('.png') >= 0 || tmpsrc.indexOf('.BMP') >= 0 || tmpsrc.indexOf('.JPEG') >= 0 || tmpsrc.indexOf('.JPG') >= 0 || tmpsrc.indexOf('.PNG') >= 0 || tmpsrc.indexOf('.GIF') >= 0) {
|
||||
var element = $("<a></a>").attr("href", image.attr('src'));
|
||||
|
|
Loading…
Reference in New Issue