allow emptytext to be html, fix

This commit is contained in:
vitalets 2013-06-15 16:39:15 +04:00
parent 118b5a50d4
commit ef6151ff15
2 changed files with 2 additions and 1 deletions

@ -3,6 +3,7 @@ X-editable changelog
Version 1.4.5 wip
----------------------------
[enh #164] allow emptytext to be html (vitalets)
[enh #78] allow html in editable content (vitalets)
[enh] update container position when datetimepicker viewMode changes (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
if(!this.options.disabled) {
if (this.isEmpty) {
this.$element.text(this.options.emptytext);
this.$element.html(this.options.emptytext);
if(this.options.emptyclass) {
this.$element.addClass(this.options.emptyclass);
}