do not set transparent bg color directly in style
This commit is contained in:
parent
2dcde6cb89
commit
2c678a10ae
@ -390,16 +390,19 @@ Makes editable any HTML element on the page. Applied as jQuery method.
|
|||||||
//highlight when saving
|
//highlight when saving
|
||||||
if(this.options.highlight) {
|
if(this.options.highlight) {
|
||||||
var $e = this.$element,
|
var $e = this.$element,
|
||||||
$bgColor = $e.css('background-color');
|
bgColor = $e.css('background-color');
|
||||||
|
|
||||||
$e.css('background-color', this.options.highlight);
|
$e.css('background-color', this.options.highlight);
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
$e.css('background-color', $bgColor);
|
if(bgColor === 'transparent') {
|
||||||
|
bgColor = '';
|
||||||
|
}
|
||||||
|
$e.css('background-color', bgColor);
|
||||||
$e.addClass('editable-bg-transition');
|
$e.addClass('editable-bg-transition');
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
$e.removeClass('editable-bg-transition');
|
$e.removeClass('editable-bg-transition');
|
||||||
}, 1700);
|
}, 1700);
|
||||||
}, 0);
|
}, 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
//set new value
|
//set new value
|
||||||
|
Loading…
x
Reference in New Issue
Block a user