复制粘贴时将图片所带链接去掉

This commit is contained in:
yuanke 2016-05-13 14:58:35 +08:00
parent 80c6edd2d3
commit fc0f92738d
1 changed files with 6 additions and 4 deletions

View File

@ -417,10 +417,12 @@ function uploadpic(piclist,myself) {
that.attr("data-ke-src", str[tIndex]);
//非视频
if(!(that.parent().attr("class") && that.parent().attr("class") == "mediaIcobox" )) {
that.parent().attr("href", str[tIndex]);
that.parent().attr("data-ke-src", str[tIndex]);
}
// if(!(that.parent().attr("class") && that.parent().attr("class") == "mediaIcobox" )) {
// that.parent().attr("href", str[tIndex]);
// that.parent().attr("data-ke-src", str[tIndex]);
// }
that.parent().removeAttr("href");
that.parent().removeAttr("data-ke-src");
tIndex = tIndex + 1;
}
}