|
|
@ -14351,15 +14351,15 @@ BI.FormulaEditor = BI.inherit(BI.Single, { |
|
|
|
|
|
|
|
|
|
|
|
_checkWaterMark: function () { |
|
|
|
_checkWaterMark: function () { |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
if (!this.disabledWarterMark && BI.isEmptyString(this.editor.getValue()) && BI.isKey(o.watermark)) { |
|
|
|
if (!this.disabledWaterMark && BI.isEmptyString(this.editor.getValue()) && BI.isKey(o.watermark)) { |
|
|
|
this.watermark && this.watermark.visible(); |
|
|
|
this.watermark && this.watermark.visible(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.watermark && this.watermark.invisible(); |
|
|
|
this.watermark && this.watermark.invisible(); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
disableWarterMark: function () { |
|
|
|
disableWaterMark: function () { |
|
|
|
this.disabledWarterMark = true; |
|
|
|
this.disabledWaterMark = true; |
|
|
|
this._checkWaterMark(); |
|
|
|
this._checkWaterMark(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -18111,7 +18111,7 @@ BI.Editor = BI.inherit(BI.Single, { |
|
|
|
|
|
|
|
|
|
|
|
_checkWaterMark: function () { |
|
|
|
_checkWaterMark: function () { |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
if (!this.disabledWarterMark && this.editor.getValue() === "" && BI.isKey(o.watermark)) { |
|
|
|
if (!this.disabledWaterMark && this.editor.getValue() === "" && BI.isKey(o.watermark)) { |
|
|
|
this.watermark && this.watermark.visible(); |
|
|
|
this.watermark && this.watermark.visible(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.watermark && this.watermark.invisible(); |
|
|
|
this.watermark && this.watermark.invisible(); |
|
|
@ -18149,13 +18149,13 @@ BI.Editor = BI.inherit(BI.Single, { |
|
|
|
this._checkError(); |
|
|
|
this._checkError(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
disableWarterMark: function () { |
|
|
|
disableWaterMark: function () { |
|
|
|
this.disabledWarterMark = true; |
|
|
|
this.disabledWaterMark = true; |
|
|
|
this._checkWaterMark(); |
|
|
|
this._checkWaterMark(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
enableWarterMark: function () { |
|
|
|
enableWaterMark: function () { |
|
|
|
this.disabledWarterMark = false; |
|
|
|
this.disabledWaterMark = false; |
|
|
|
this._checkWaterMark(); |
|
|
|
this._checkWaterMark(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|