summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2014-09-09 15:07:56 (GMT)
committerAlex Pott2014-09-09 15:07:56 (GMT)
commit61215d04003fbd00faa8e7e8aa268bad1e4f079a (patch)
tree431563832b7a7f9521a428a04ea3662d739bf8e3
parent986b32ec466c8883bab54ef90165915c6d3b45d6 (diff)
Issue #2154775 by yvesvanlaer, er.pushpinderrana, kirkkala, barnettech, InternetDevels | Wim Leers: Fixed In-place editing of title: works, but cursor is invisible.
-rw-r--r--core/modules/quickedit/js/views/FieldDecorationView.js27
1 files changed, 2 insertions, 25 deletions
diff --git a/core/modules/quickedit/js/views/FieldDecorationView.js b/core/modules/quickedit/js/views/FieldDecorationView.js
index 9e85c02..b63e57c 100644
--- a/core/modules/quickedit/js/views/FieldDecorationView.js
+++ b/core/modules/quickedit/js/views/FieldDecorationView.js
@@ -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)
@@ -290,27 +288,6 @@
},
/**
- * 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.
*
* Convert extraneous values and information into numbers ready for