Problem/Motivation

When using Panels and Panelizer in admin mode the ajax call in Drupal.ajax.prototype.autologoutRefresh wasn't setting ajaxPageState in the request. This caused the response to override the ajaxPageState.theme and theme_token. This caused the next ajax call (usually made by interaction with Panels) to want to load any CSS or JS associated with the default theme. This cause styling conflicts when on a page using the admin theme.

Proposed resolution

Run the ajax.options through ajax.beforeSerialize to include the ajax_page_state to the ajax request.

Remaining tasks

Patch will be attached in first comment

User interface changes

None

API changes

None

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

xeraseth’s picture

Attaching patch for review

xeraseth’s picture

Status: Active » Needs review
tame4tex’s picture

This patch worked for me ... also fixed another ajax - colorbox related bug

johnennew’s picture

Priority: Minor » Normal
Status: Needs review » Reviewed & tested by the community

Many thanks for this patch - I can confirm it works as described.

  • ceng committed 448dd97 on 7.x-4.x authored by xeraseth
    Issue #2469177 by xeraseth, tame4tex, ceng: Theme info not passed in...
johnennew’s picture

Status: Reviewed & tested by the community » Fixed

Committed with thanks!

johnennew’s picture

Status: Fixed » Closed (fixed)

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

dewalt’s picture

The patch solves issue for autologoutGetTimeLeft call only, the same trick should be added to autologoutRefresh call. Full patch is attached.

Status: Needs review » Needs work

The last submitted patch, 9: autologout-not-passing-ajax_page_state-2469177-9.patch, failed testing.

The last submitted patch, 9: autologout-not-passing-ajax_page_state-2469177-9.patch, failed testing.

The last submitted patch, 9: autologout-not-passing-ajax_page_state-2469177-9.patch, failed testing.

The last submitted patch, 9: autologout-not-passing-ajax_page_state-2469177-9.patch, failed testing.

The last submitted patch, 9: autologout-not-passing-ajax_page_state-2469177-9.patch, failed testing.

dewalt’s picture

dewalt’s picture

Status: Needs work » Needs review

  • ceng committed c5c3ec5 on 7.x-4.x authored by dewalt
    Issue #2469177 by dewalt, xeraseth, ceng, tame4tex: Theme info not...
johnennew’s picture

Status: Needs review » Fixed

Committed, thanks!

Status: Fixed » Closed (fixed)

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