In the event where panels.js or panels-base.js is called after display_editor.js (I managed to do this by calling $renderer::add_meta() a second time in a specialized renderer class) all of the drag and drop methods are wiped out because Drupal.Panels is re-initialized to an empty object {}. I propose initializing Drupal.Panels in the same manner the the global Drupal object is initialized:

Drupal.Panels = Drupal.Panels || {};
CommentFileSizeAuthor
#1 base-js-1529208-1.patch920 byteshelior
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

helior’s picture

Status: Active » Needs review
FileSize
920 bytes
MTecknology’s picture

Status: Needs review » Reviewed & tested by the community

I ran into this issue when trying to use Panel Frame and this patch resolved it.

merlinofchaos’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit 86ae732 on 7.x-3.x, 7.x-3.x-i18n, 8.x-3.x authored by helior, committed by merlinofchaos:
    Issue #1529208 by helior: Fixed Safely initialize Drupal.Panels...