表格问题
This commit is contained in:
parent
c31d4dc3bd
commit
a1323e3d76
|
@ -3787,17 +3787,18 @@ _extend(KEdit, KWidget, {
|
||||||
} else {
|
} else {
|
||||||
val = body.innerHTML;
|
val = body.innerHTML;
|
||||||
}
|
}
|
||||||
// if (self.beforeGetHtml) {
|
//yk
|
||||||
// val = self.beforeGetHtml(val);
|
if (self.beforeGetHtml) {
|
||||||
// }
|
val = self.beforeGetHtml(val);
|
||||||
|
}
|
||||||
if (_GECKO && val == '<br />') {
|
if (_GECKO && val == '<br />') {
|
||||||
val = '';
|
val = '';
|
||||||
}
|
}
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
// if (self.beforeSetHtml) {
|
if (self.beforeSetHtml) {
|
||||||
// val = self.beforeSetHtml(val);
|
val = self.beforeSetHtml(val);
|
||||||
// }
|
}
|
||||||
if (_IE && _V >= 9) {
|
if (_IE && _V >= 9) {
|
||||||
val = val.replace(/(<.*?checked=")checked(".*>)/ig, '$1$2');
|
val = val.replace(/(<.*?checked=")checked(".*>)/ig, '$1$2');
|
||||||
}
|
}
|
||||||
|
|
|
@ -362,12 +362,14 @@ function df(myself) {
|
||||||
var sstr = "";
|
var sstr = "";
|
||||||
$(img).each(function (i) {
|
$(img).each(function (i) {
|
||||||
var that = $(this);
|
var that = $(this);
|
||||||
if (that.attr("src").indexOf("http://") >= 0 || that.attr("src").indexOf("https://") >= 0) {
|
if(that.attr("src")) {
|
||||||
piccount++;
|
if (that.attr("src").indexOf("http://") >= 0 || that.attr("src").indexOf("https://") >= 0) {
|
||||||
if (i == $(img).length - 1)
|
piccount++;
|
||||||
sstr += that.attr("src");
|
if (i == $(img).length - 1)
|
||||||
else
|
sstr += that.attr("src");
|
||||||
sstr += that.attr("src") + "|";
|
else
|
||||||
|
sstr += that.attr("src") + "|";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
uploadpic(sstr,myself);
|
uploadpic(sstr,myself);
|
||||||
|
@ -409,12 +411,18 @@ function uploadpic(piclist,myself) {
|
||||||
var tIndex = 0;
|
var tIndex = 0;
|
||||||
$(img).each(function (i) {
|
$(img).each(function (i) {
|
||||||
var that = $(this);
|
var that = $(this);
|
||||||
if (that.attr("src").indexOf("http://") >= 0 || that.attr("src").indexOf("https://") >= 0) {
|
if(that.attr("src")){
|
||||||
that.attr("src", str[tIndex]);
|
if (that.attr("src").indexOf("http://") >= 0 || that.attr("src").indexOf("https://") >= 0) {
|
||||||
that.attr("data-ke-src", str[tIndex]);
|
that.attr("src", str[tIndex]);
|
||||||
that.parent().attr("href", str[tIndex]);
|
that.attr("data-ke-src", str[tIndex]);
|
||||||
that.parent().attr("data-ke-src", str[tIndex]);
|
|
||||||
tIndex = tIndex + 1;
|
//非视频
|
||||||
|
if(!(that.parent().attr("class") && that.parent().attr("class") == "mediaIcobox" )) {
|
||||||
|
that.parent().attr("href", str[tIndex]);
|
||||||
|
that.parent().attr("data-ke-src", str[tIndex]);
|
||||||
|
}
|
||||||
|
tIndex = tIndex + 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue