From 83288964f179570fe706ff5df7fc84db5af25ebb Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 15 Jul 2015 22:13:22 -0700 Subject: [PATCH] Issue #1138 - Bootstrap3 modal working again in admin area. --- e107_admin/header.php | 6 ++++ e107_themes/bootstrap3/admin_style.css | 2 +- e107_themes/bootstrap3/admin_template.php | 41 ++++++++++++++++++++++- e107_web/js/core/admin.jquery.js | 9 +++-- 4 files changed, 54 insertions(+), 4 deletions(-) diff --git a/e107_admin/header.php b/e107_admin/header.php index 73f7b6212..77b39af5a 100644 --- a/e107_admin/header.php +++ b/e107_admin/header.php @@ -541,6 +541,12 @@ echo getAlert(); function getModal($caption = '', $type='') { + + if(deftrue('BOOTSTRAP') === 3) // see bootstrap3/admin_template.php + { + return ''; + } + if(e_PAGE == 'menus.php' && vartrue($_GET['configure'])) // Menu Manager iFrame disable { return; diff --git a/e107_themes/bootstrap3/admin_style.css b/e107_themes/bootstrap3/admin_style.css index 36e7d5ce5..dbcf8a6a6 100644 --- a/e107_themes/bootstrap3/admin_style.css +++ b/e107_themes/bootstrap3/admin_style.css @@ -109,7 +109,7 @@ td.options .btn-group { display: flex; } .label, .badge { text-shadow: 1px 1px 0px #000; box-shadow: 1px 1px 0px #000; } - +#admin-ui-modal { width: 90%; } diff --git a/e107_themes/bootstrap3/admin_template.php b/e107_themes/bootstrap3/admin_template.php index 8a690162e..83047dcde 100644 --- a/e107_themes/bootstrap3/admin_template.php +++ b/e107_themes/bootstrap3/admin_template.php @@ -191,7 +191,46 @@ $ADMIN_HEADER = '