diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2011-06-08 20:48:31 -0700 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2011-06-08 20:48:31 -0700 |
commit | 62b52c86f0cfddb884919b0e245823f8f5b43ad2 (patch) | |
tree | febfab4862e3e4c6a038d4fdaab546f96ce86bc5 | |
parent | 86f0c5684edfe330e929417ab641977448109d81 (diff) | |
download | brdo-62b52c86f0cfddb884919b0e245823f8f5b43ad2.tar.gz brdo-62b52c86f0cfddb884919b0e245823f8f5b43ad2.tar.bz2 |
Issue #996240 by David_Rothstein: Fixed Javascript error in node preview when there are unlimited value fields in overlay.
-rw-r--r-- | modules/overlay/overlay.module | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/overlay/overlay.module b/modules/overlay/overlay.module index 84b755484..44c230b64 100644 --- a/modules/overlay/overlay.module +++ b/modules/overlay/overlay.module @@ -832,11 +832,14 @@ function overlay_render_region($region) { // on the final rendered page. $original_js = drupal_add_js(); $original_css = drupal_add_css(); + $original_libraries = drupal_static('drupal_add_library'); $js = &drupal_static('drupal_add_js'); $css = &drupal_static('drupal_add_css'); + $libraries = &drupal_static('drupal_add_library'); $markup = drupal_render_page($page); $js = $original_js; $css = $original_css; + $libraries = $original_libraries; // Indicate that the main page content has not, in fact, been displayed, so // that future calls to drupal_render_page() will be able to render it // correctly. |