diff --git a/administrator/components/com_content/views/article/tmpl/pagebreak.php b/administrator/components/com_content/views/article/tmpl/pagebreak.php index 949a05d6e867f..cbc9ff0cb7a54 100644 --- a/administrator/components/com_content/views/article/tmpl/pagebreak.php +++ b/administrator/components/com_content/views/article/tmpl/pagebreak.php @@ -23,7 +23,7 @@ $script .= '}'."\n\t"; $script .= 'var tag = "
";'."\n\t"; $script .= 'window.parent.jInsertEditorText(tag, \''.$this->eName.'\');'."\n\t"; -$script .= 'window.parent.SqueezeBox.close();'."\n\t"; +$script .= 'window.parent.jQuery("#pagebreakModal").modal("hide");'."\n\t"; $script .= 'return false;'."\n"; $script .= '}'."\n"; diff --git a/administrator/templates/isis/css/template-rtl.css b/administrator/templates/isis/css/template-rtl.css index 1e03b879b8a1e..2ed017629ab02 100644 --- a/administrator/templates/isis/css/template-rtl.css +++ b/administrator/templates/isis/css/template-rtl.css @@ -3906,13 +3906,15 @@ input[type="submit"].btn.btn-mini { line-height: 30px; } .modal-body { + width: 98%; position: relative; overflow-y: auto; - max-height: 400px; - padding: 15px; + max-height: none; + padding: 1%; } .modal-body iframe { - max-height: 390px; + width: 100%; + max-height: none; border: 0 !important; } .modal-form { @@ -6151,11 +6153,11 @@ th .tooltip-inner { } div.modal { position: fixed; - top: 10%; + top: 5%; left: 50%; z-index: 1050; - width: 580px; - margin-left: -280px; + width: 80%; + margin-left: -40%; background-color: #fff; border: 1px solid #999; border: 1px solid rgba(0,0,0,0.3); @@ -6179,7 +6181,7 @@ div.modal.fade { top: -25%; } div.modal.fade.in { - top: 10%; + top: 5%; } .modal-batch { overflow-y: visible; @@ -7196,6 +7198,7 @@ body .navbar-fixed-top { color: #0C192E; text-shadow: 0 1px 0 #FFF; margin-bottom: 10px; + min-height: 43px; } .subhead-collapse.collapse { height: auto; diff --git a/administrator/templates/isis/css/template.css b/administrator/templates/isis/css/template.css index 5659379d0dd85..5705ff7d924fb 100644 --- a/administrator/templates/isis/css/template.css +++ b/administrator/templates/isis/css/template.css @@ -3906,13 +3906,15 @@ input[type="submit"].btn.btn-mini { line-height: 30px; } .modal-body { + width: 98%; position: relative; overflow-y: auto; - max-height: 400px; - padding: 15px; + max-height: none; + padding: 1%; } .modal-body iframe { - max-height: 390px; + width: 100%; + max-height: none; border: 0 !important; } .modal-form { @@ -6151,11 +6153,11 @@ th .tooltip-inner { } div.modal { position: fixed; - top: 10%; + top: 5%; left: 50%; z-index: 1050; - width: 580px; - margin-left: -280px; + width: 80%; + margin-left: -40%; background-color: #fff; border: 1px solid #999; border: 1px solid rgba(0,0,0,0.3); @@ -6179,7 +6181,7 @@ div.modal.fade { top: -25%; } div.modal.fade.in { - top: 10%; + top: 5%; } .modal-batch { overflow-y: visible; @@ -7196,7 +7198,7 @@ body .navbar-fixed-top { color: #0C192E; text-shadow: 0 1px 0 #FFF; margin-bottom: 10px; - min-height:43px; + min-height: 43px; } .subhead-collapse.collapse { height: auto; diff --git a/layouts/joomla/editors/buttons.php b/layouts/joomla/editors/buttons.php index fa32b1c386d45..0960cf45321b8 100644 --- a/layouts/joomla/editors/buttons.php +++ b/layouts/joomla/editors/buttons.php @@ -12,7 +12,7 @@ $buttons = $displayData; // Load modal popup behavior -JHtml::_('behavior.modal', 'a.modal-button'); +JHtml::_('bootstrap.modal'); ?>
diff --git a/layouts/joomla/editors/buttons/button.php b/layouts/joomla/editors/buttons/button.php index 7d9d024c34b8f..0de5ba6aea4d7 100644 --- a/layouts/joomla/editors/buttons/button.php +++ b/layouts/joomla/editors/buttons/button.php @@ -11,16 +11,27 @@ $button = $displayData; -?> -get('name')) : ?> - get('class')) ? $button->get('class') : null; - $class .= ($button->get('modal')) ? ' modal-button' : null; - $href = ($button->get('link')) ? ' href="' . JUri::base() . $button->get('link') . '"' : null; - $onclick = ($button->get('onclick')) ? ' onclick="' . $button->get('onclick') . '"' : ' onclick="IeCursorFix(); return false;"'; - $title = ($button->get('title')) ? $button->get('title') : $button->get('text'); - ?> - rel="get('options'); ?>"> - get('text'); ?> +if ($button->get('name')) +{ + $class = ($button->get('class')) ? $button->get('class') : null; + $class .= ($button->get('modal')) ? ' modal-button' : null; + $href = ($button->get('link')) ? ' href="' . JUri::base() . $button->get('link') . '"' : null; + $onclick = ($button->get('onclick')) ? ' onclick="' . $button->get('onclick') . '"' : ' onclick="IeCursorFix(); return false;"'; + $title = ($button->get('title')) ? $button->get('title') : $button->get('text'); + + + if ($button->get('modal')) + { + $tmptitle = str_replace(' ', '', strtolower(htmlspecialchars($title))); + echo JHtmlBootstrap::renderModal($tmptitle . 'Modal', array( 'url' => JUri::base() . $button->get('link'), 'title' => $title,'height' => '600px', 'width' => '800px')); ?> + + + get('text'); ?> - + rel="get('options'); ?>"> + get('text'); ?> + +getAuthorisedCategories($extension, 'core.edit.own')) > 0 && $author == $user->id)) { $link = 'index.php?option=com_media&view=images&tmpl=component&e_name=' . $name . '&asset=' . $asset . '&author=' . $author; - JHtml::_('behavior.modal'); + JHtml::_('bootstrap.modal'); $button = new JObject; $button->modal = true; $button->class = 'btn'; diff --git a/plugins/editors-xtd/pagebreak/pagebreak.php b/plugins/editors-xtd/pagebreak/pagebreak.php index 9963a9f1df429..7a9e69154f256 100644 --- a/plugins/editors-xtd/pagebreak/pagebreak.php +++ b/plugins/editors-xtd/pagebreak/pagebreak.php @@ -35,7 +35,7 @@ class PlgButtonPagebreak extends JPlugin */ public function onDisplay($name) { - JHtml::_('behavior.modal'); + JHtml::_('bootstrap.modal'); $link = 'index.php?option=com_content&view=article&layout=pagebreak&tmpl=component&e_name=' . $name; diff --git a/templates/protostar/css/template.css b/templates/protostar/css/template.css index 567c058fb5bad..54167d78153ad 100644 --- a/templates/protostar/css/template.css +++ b/templates/protostar/css/template.css @@ -3906,13 +3906,15 @@ input[type="submit"].btn.btn-mini { line-height: 30px; } .modal-body { + width: 98%; position: relative; overflow-y: auto; - max-height: 400px; - padding: 15px; + max-height: none; + padding: 1%; } .modal-body iframe { - max-height: 390px; + width: 100%; + max-height: none; border: 0 !important; } .modal-form { @@ -6151,11 +6153,11 @@ th .tooltip-inner { } div.modal { position: fixed; - top: 10%; + top: 5%; left: 50%; z-index: 1050; - width: 580px; - margin-left: -280px; + width: 80%; + margin-left: -40%; background-color: #fff; border: 1px solid #999; border: 1px solid rgba(0,0,0,0.3); @@ -6179,7 +6181,7 @@ div.modal.fade { top: -25%; } div.modal.fade.in { - top: 10%; + top: 5%; } .modal-batch { overflow-y: visible;