Revert "Issue #2089397 by swentel, Wim Leers: Fixed Double 'Quick edit' contextual link."
Wrong commit message.
This reverts commit 9bc576cded
.
8.0.x
parent
9bc576cded
commit
1a1ba935cf
|
@ -385,9 +385,8 @@ function initializeEntityContextualLink (contextualLink) {
|
|||
});
|
||||
fieldsAvailableQueue = _.difference(fieldsAvailableQueue, fields);
|
||||
|
||||
// Initialization should only be called once. Use Underscore's once method
|
||||
// to get a one-time use version of the function.
|
||||
var initContextualLink = _.once(function () {
|
||||
// Set up contextual link view after loading any missing in-place editors.
|
||||
loadMissingEditors(function () {
|
||||
var $links = $(contextualLink.el).find('.contextual-links');
|
||||
var contextualLinkView = new Drupal.edit.ContextualLinkView($.extend({
|
||||
el: $('<li class="quick-edit"><a href=""></a></li>').prependTo($links),
|
||||
|
@ -397,9 +396,6 @@ function initializeEntityContextualLink (contextualLink) {
|
|||
entityModel.set('contextualLinkView', contextualLinkView);
|
||||
});
|
||||
|
||||
// Set up ContextualLinkView after loading any missing in-place editors.
|
||||
loadMissingEditors(initContextualLink);
|
||||
|
||||
return true;
|
||||
}
|
||||
// There was not at least one field that the current user may edit in-place,
|
||||
|
|
Loading…
Reference in New Issue