Commit 253a2e6d authored by Dries's avatar Dries
Browse files

- Patch #654558 by ksenzee: toolbar drawer toggle is broken.

parent 8de2de02
......@@ -29,7 +29,10 @@ Drupal.behaviors.overlayParent = {
// Resize the overlay when the toolbar drawer is toggled.
$('#toolbar a.toggle', context).once('overlay').click(function () {
setTimeout(function () {
Drupal.overlay.resize(Drupal.overlay.iframe.documentSize);
// Resize the overlay, if it's open.
if (Drupal.overlay.iframe.documentSize) {
Drupal.overlay.resize(Drupal.overlay.iframe.documentSize);
}
}, 150);
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment