From 9506d25202c1a88b077a8435ddb152f927e0b557 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 17 Jan 2017 18:35:30 +0100 Subject: [PATCH] printPopupBox() can return html instead of printing it --- views/bootstrap/class.Bootstrap.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index 9b5e4e323..4fdb6c90c 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -2442,13 +2442,16 @@ mayscript> $this->printTimelineHtml($height); } /* }}} */ - protected function printPopupBox($title, $content) { /* {{{ */ -?> - + protected function printPopupBox($title, $content, $ret=false) { /* {{{ */ + $html = ' + '.$title.' -'; + if($ret) + return $html; + else + echo $html; } /* }}} */ protected function printAccordion($title, $content) { /* {{{ */