allow emptytext to be html, fix #164
This commit is contained in:
parent
118b5a50d4
commit
ef6151ff15
@ -3,6 +3,7 @@ X-editable changelog
|
|||||||
|
|
||||||
Version 1.4.5 wip
|
Version 1.4.5 wip
|
||||||
----------------------------
|
----------------------------
|
||||||
|
[enh #164] allow emptytext to be html (vitalets)
|
||||||
[enh #78] allow html in editable content (vitalets)
|
[enh #78] allow html in editable content (vitalets)
|
||||||
[enh] update container position when datetimepicker viewMode changes (vitalets)
|
[enh] update container position when datetimepicker viewMode changes (vitalets)
|
||||||
[enh #255] remove xxxView options from first level config of datetimepicker (vitalets)
|
[enh #255] remove xxxView options from first level config of datetimepicker (vitalets)
|
||||||
|
@ -287,7 +287,7 @@ Makes editable any HTML element on the page. Applied as jQuery method.
|
|||||||
//emptytext shown only for enabled
|
//emptytext shown only for enabled
|
||||||
if(!this.options.disabled) {
|
if(!this.options.disabled) {
|
||||||
if (this.isEmpty) {
|
if (this.isEmpty) {
|
||||||
this.$element.text(this.options.emptytext);
|
this.$element.html(this.options.emptytext);
|
||||||
if(this.options.emptyclass) {
|
if(this.options.emptyclass) {
|
||||||
this.$element.addClass(this.options.emptyclass);
|
this.$element.addClass(this.options.emptyclass);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user