Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrammatiko committed Mar 16, 2015
1 parent efad14c commit 29e6067
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libraries/cms/toolbar/button/popup.php
Expand Up @@ -36,13 +36,13 @@ class JToolbarButtonPopup extends JToolbarButton
* @param integer $left Left attribute. [@deprecated Unused, will be removed in 4.0]
* @param string $onClose JavaScript for the onClose event.
* @param string $title The title text
* @param string $footer The footer html
*
* @return string HTML string for the button
*
* @since 3.0
*/
public function fetchButton($type = 'Modal', $name = '', $text = '', $url = '', $width = 640, $height = 480, $top = 0, $left = 0,
$onClose = '', $title = '')
public function fetchButton($type = 'Modal', $name = '', $text = '', $url = '', $width = 640, $height = 480, $top = 0, $left = 0, $onClose = '', $title = '', $footer = '')
{
// If no $title is set, use the $text element
if (strlen($title) == 0)
Expand Down Expand Up @@ -73,6 +73,7 @@ public function fetchButton($type = 'Modal', $name = '', $text = '', $url = '',
$params['url'] = $options['doTask'];
$params['height'] = $height;
$params['width'] = $width;
$params['footer'] = $footer;
$html[] = JHtml::_('bootstrap.renderModal', 'modal-' . $name, $params);

// If an $onClose event is passed, add it to the modal JS object
Expand Down

0 comments on commit 29e6067

Please sign in to comment.