|
|
|
@ -19278,7 +19278,7 @@ BI.extend(jQuery.fn, {
|
|
|
|
|
*/ |
|
|
|
|
__textKeywordMarked__: function (text, keyword, py) { |
|
|
|
|
if (!BI.isKey(keyword) || (text + "").length > 100) { |
|
|
|
|
return this.html((text + "").replaceAll(" ", " ")); |
|
|
|
|
return this.html(( this[0] && this[0].ownerDocument || document ).createTextNode((text + "").replaceAll(" ", " "))); |
|
|
|
|
} |
|
|
|
|
keyword = keyword + ""; |
|
|
|
|
keyword = BI.toUpperCase(keyword); |
|
|
|
@ -19301,7 +19301,7 @@ BI.extend(jQuery.fn, {
|
|
|
|
|
if (tidx >= 0) { |
|
|
|
|
this.append(textLeft.substr(0, tidx)); |
|
|
|
|
this.append($("<span>").addClass("bi-keyword-red-mark") |
|
|
|
|
.html(textLeft.substr(tidx, keyword.length).replaceAll(" ", " "))); |
|
|
|
|
.html(( this[0] && this[0].ownerDocument || document ).createTextNode(textLeft.substr(tidx, keyword.length).replaceAll(" ", " ")))); |
|
|
|
|
|
|
|
|
|
textLeft = textLeft.substr(tidx + keyword.length); |
|
|
|
|
if (py != null) { |
|
|
|
@ -19310,7 +19310,7 @@ BI.extend(jQuery.fn, {
|
|
|
|
|
} else if (pidx != null && pidx >= 0 && Math.floor(pidx / text.length) === Math.floor((pidx + keyword.length - 1) / text.length)) { |
|
|
|
|
this.append(textLeft.substr(0, pidx)); |
|
|
|
|
this.append($("<span>").addClass("bi-keyword-red-mark") |
|
|
|
|
.html(textLeft.substr(pidx, keyword.length).replaceAll(" ", " "))); |
|
|
|
|
.html(( this[0] && this[0].ownerDocument || document ).createTextNode(textLeft.substr(pidx, keyword.length).replaceAll(" ", " ")))); |
|
|
|
|
if (py != null) { |
|
|
|
|
py = py.substr(pidx + keyword.length); |
|
|
|
|
} |
|
|
|
@ -26428,7 +26428,7 @@ BI.Text = BI.inherit(BI.Single, {
|
|
|
|
|
setText: function (text) { |
|
|
|
|
BI.Text.superclass.setText.apply(this, arguments); |
|
|
|
|
this.options.text = text; |
|
|
|
|
this.text.element.html((text + "").replaceAll(" ", " ")); |
|
|
|
|
this.text.element.html(( this[0] && this[0].ownerDocument || document ).createTextNode( (text + "").replaceAll(" ", " ") )); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|