From ac6084dea9310f7de7d9118fa38af9e066584988 Mon Sep 17 00:00:00 2001 From: CaMer0n Date: Thu, 17 May 2012 17:47:14 +0000 Subject: [PATCH] dialog styling fixes --- e107_handlers/form_handler.php | 4 ++-- e107_handlers/js_manager.php | 18 ++++++++++-------- e107_themes/jayya/style.css | 2 +- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index 8dd1da6f1..6acdea817 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -175,8 +175,8 @@ class e_form ev.stop(); new e107Widgets.URLDialog(element.href, { id: element["id"] || "e-dialog", - width: 830, - height: 650 + width: 890, + height: 680 }).center().setHeader("Media Manager : '.$category.'").setFooter('.$footer.').activate().show(); }); diff --git a/e107_handlers/js_manager.php b/e107_handlers/js_manager.php index 41277d38f..b6f6bb5cc 100644 --- a/e107_handlers/js_manager.php +++ b/e107_handlers/js_manager.php @@ -208,18 +208,20 @@ class e_jsmanager $this->_core_prefs = e107::getPref('e_jslib_core'); $core = array(); - foreach($this->_core_prefs as $id=>$vis) + if(is_array($this->_core_prefs)) { - if($vis != 'none' && $vis != 'auto') + foreach($this->_core_prefs as $id=>$vis) { - foreach($this->_libraries[$id] as $path) + if($vis != 'none' && $vis != 'auto') { - $core[$path] = $vis; - } - } - - } + foreach($this->_libraries[$id] as $path) + { + $core[$path] = $vis; + } + } + } + } $this->coreLib($core); // Load stored in preferences plugin lib paths ASAP diff --git a/e107_themes/jayya/style.css b/e107_themes/jayya/style.css index ad4ba01f4..1d6abfe58 100644 --- a/e107_themes/jayya/style.css +++ b/e107_themes/jayya/style.css @@ -827,7 +827,7 @@ h1.bbcode, h2.bbcode, h3.bbcode, h4.bbcode, h5.bbcode, h6.bbcode { }/* override div.bbcode { margin: 15px 0px; clear: both; } /* layout control via bbcodes */ -a.media-select-image { margin:5px; border:1px solid silver; } +a.media-select-image { margin:5px; border:1px solid silver; width:120px; height:100px; } a.media-select-image:hover { border:1px solid red; } a.media-select-icon { text-align:center; vertical-align:middle; margin:1px; border:1px solid white; width:48px; height:48px;} a.media-select-icon:hover { border:1px solid red; }