Revert "Issue #2089397 by swentel, Wim Leers: Fixed Double 'Quick edit' contextual link."

Wrong commit message.

This reverts commit 9bc576cded.
8.0.x
webchick 2013-10-10 07:52:48 -07:00
parent 9bc576cded
commit 1a1ba935cf
1 changed files with 2 additions and 6 deletions

View File

@ -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,