This commit is contained in:
vitalets 2013-02-24 10:58:51 +04:00
parent e2ae81b687
commit b620b10f12

@ -115,6 +115,9 @@ Makes editable any HTML element on the page. Applied as jQuery method.
this.$element.on(this.options.toggle + '.editable', selector, $.proxy(function(e){
var $target = $(e.target);
if(!$target.data('editable')) {
if($target.hasClass(this.options.emptyclass)) {
$target.empty();
}
$target.editable(this.options).trigger(e);
}
}, this));