#650528 by jide, casey, et al: Overlay should not appear when an administrative page is being viewed in the parent window.

merge-requests/26/head
Angie Byron 2010-02-16 00:27:34 +00:00
parent bfe2c14b54
commit 7fd33ed2d3
1 changed files with 2 additions and 1 deletions

View File

@ -84,7 +84,8 @@ function overlay_init() {
// Unset the render parameter to avoid it being included in URLs on the page.
unset($_GET['render']);
}
else {
// Do not enable the overlay if we already are on an admin page.
else if (!path_is_admin(current_path())) {
// Otherwise add overlay parent code and our behavior.
overlay_set_mode('parent');
}