Browse Source

Merge pull request #89 in ~GUY/fineui from ~WINDY/fineui:master to master

* commit '5b3e098ad18797886e6e3980fe16fcdb4cc3e78e':
  文本超过100个字符就不标红了
es6
windy 8 years ago
parent
commit
91bc85a082
  1. 2
      bi/core.js
  2. 2
      docs/core.js
  3. 2
      src/core/func/dom.js

2
bi/core.js

@ -16139,7 +16139,7 @@ BI.extend(jQuery.fn, {
* @private * @private
*/ */
__textKeywordMarked__: function (text, keyword, py) { __textKeywordMarked__: function (text, keyword, py) {
if (!BI.isKey(keyword)) { if (!BI.isKey(keyword) || (text + "").length > 100) {
return this.text((text + "").replaceAll(" ", " ")); return this.text((text + "").replaceAll(" ", " "));
} }
keyword = keyword + ""; keyword = keyword + "";

2
docs/core.js

@ -22157,7 +22157,7 @@ BI.extend(jQuery.fn, {
* @private * @private
*/ */
__textKeywordMarked__: function (text, keyword, py) { __textKeywordMarked__: function (text, keyword, py) {
if (!BI.isKey(keyword)) { if (!BI.isKey(keyword) || (text + "").length > 100) {
return this.text((text + "").replaceAll(" ", " ")); return this.text((text + "").replaceAll(" ", " "));
} }
keyword = keyword + ""; keyword = keyword + "";

2
src/core/func/dom.js

@ -19,7 +19,7 @@ BI.extend(jQuery.fn, {
* @private * @private
*/ */
__textKeywordMarked__: function (text, keyword, py) { __textKeywordMarked__: function (text, keyword, py) {
if (!BI.isKey(keyword)) { if (!BI.isKey(keyword) || (text + "").length > 100) {
return this.text((text + "").replaceAll(" ", " ")); return this.text((text + "").replaceAll(" ", " "));
} }
keyword = keyword + ""; keyword = keyword + "";

Loading…
Cancel
Save