changelog
This commit is contained in:
parent
b620b10f12
commit
1765565f31
@ -5,6 +5,7 @@ X-editable changelog
|
|||||||
|
|
||||||
Version 1.4.2 wip
|
Version 1.4.2 wip
|
||||||
----------------------------
|
----------------------------
|
||||||
|
[bug #137] fix empty class for delegated element (vitalets)
|
||||||
[enh #121] add support of momentjs 2.0.0 in combodate (vitalets)
|
[enh #121] add support of momentjs 2.0.0 in combodate (vitalets)
|
||||||
|
|
||||||
|
|
||||||
|
@ -115,6 +115,8 @@ Makes editable any HTML element on the page. Applied as jQuery method.
|
|||||||
this.$element.on(this.options.toggle + '.editable', selector, $.proxy(function(e){
|
this.$element.on(this.options.toggle + '.editable', selector, $.proxy(function(e){
|
||||||
var $target = $(e.target);
|
var $target = $(e.target);
|
||||||
if(!$target.data('editable')) {
|
if(!$target.data('editable')) {
|
||||||
|
//if delegated element initially empty, we need to clear it's text (that was manually set to `empty` by user)
|
||||||
|
//see https://github.com/vitalets/x-editable/issues/137
|
||||||
if($target.hasClass(this.options.emptyclass)) {
|
if($target.hasClass(this.options.emptyclass)) {
|
||||||
$target.empty();
|
$target.empty();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user