Commit 61215d04 authored by alexpott's avatar alexpott

Issue #2154775 by yvesvanlaer, er.pushpinderrana, kirkkala, barnettech,...

Issue #2154775 by yvesvanlaer, er.pushpinderrana, kirkkala, barnettech, InternetDevels | Wim Leers: Fixed In-place editing of title: works, but cursor is invisible.
parent 986b32ec
......@@ -218,8 +218,7 @@
this._widthAttributeIsEmpty = true;
this.$el
.addClass('quickedit-animate-disable-width')
.css('width', this.$el.width())
.css('background-color', this._getBgColor(this.$el));
.css('width', this.$el.width());
}
// 2) Add padding; use animations.
......@@ -258,8 +257,7 @@
if (this._widthAttributeIsEmpty) {
this.$el
.addClass('quickedit-animate-disable-width')
.css('width', '')
.css('background-color', '');
.css('width', '');
}
// 2) Remove padding; use animations (these will run simultaneously with)
......@@ -289,27 +287,6 @@
this.$el.removeData('quickedit-padded');
},
/**
* Gets the background color of an element (or the inherited one).
*
* @param DOM $e
*/
_getBgColor: function ($e) {
var c;
if ($e === null || $e[0].nodeName === 'HTML') {
// Fallback to white.
return 'rgb(255, 255, 255)';
}
c = $e.css('background-color');
// TRICKY: edge case for Firefox' "transparent" here; this is a
// browser bug: https://bugzilla.mozilla.org/show_bug.cgi?id=635724
if (c === 'rgba(0, 0, 0, 0)' || c === 'transparent') {
return this._getBgColor($e.parent());
}
return c;
},
/**
* Gets the top and left properties of an element.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment