From 650041b5aaa953d6ea381e09d4ee2be1cce3005a Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 19 Jul 2015 17:10:03 -0700 Subject: [PATCH] Admin-UI: Media-Manager layout enhancements. --- e107_admin/footer.php | 6 +- e107_admin/image.php | 8 ++- e107_handlers/media_class.php | 13 ++-- e107_themes/bootstrap3/admin_dark.css | 4 ++ e107_themes/bootstrap3/admin_style.css | 4 +- e107_web/js/core/mediaManager.js | 88 ++++++++++++++++++++++---- 6 files changed, 100 insertions(+), 23 deletions(-) diff --git a/e107_admin/footer.php b/e107_admin/footer.php index 17dde4410..a388c6773 100644 --- a/e107_admin/footer.php +++ b/e107_admin/footer.php @@ -172,7 +172,11 @@ if (varset($e107_popup) != 1) } else { - echo($rinfo ? "\n\n" : ""); + + if(!deftrue('e_IFRAME')) + { + echo($rinfo ? "\n\n" : ""); + } } } // End of regular-page footer (the above NOT done for popups) diff --git a/e107_admin/image.php b/e107_admin/image.php index 99183690d..1c7ee1428 100644 --- a/e107_admin/image.php +++ b/e107_admin/image.php @@ -45,11 +45,15 @@ if(isset($_POST['submit_cancel_show'])) include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/admin/lan_'.e_PAGE); - +if($_GET['action'] == 'dialog') +{ + e107::css('inline', "body { background-color: #373737 } "); +} if(vartrue($_GET['action']) == 'nav' && e_AJAX_REQUEST) //XXX Doesn't work correctly inside the class for some reason { define("e_IFRAME",true); + // require_once(e_ADMIN."auth.php"); $bbcodeMode = ($_GET['bbcode']=='img') ? 'bbcode=img' : FALSE; @@ -1087,7 +1091,7 @@ class media_admin_ui extends e_admin_ui $options['bbcode'] = ($this->getQuery('bbcode')=='img') ? 'img' : FALSE; - $text = "