mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
allow to place several popup boxes on a page
This commit is contained in:
parent
3dcf867634
commit
b8d4d12f4e
|
@ -2443,10 +2443,20 @@ mayscript>
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
protected function printPopupBox($title, $content, $ret=false) { /* {{{ */
|
protected function printPopupBox($title, $content, $ret=false) { /* {{{ */
|
||||||
|
$id = md5(uniqid());
|
||||||
|
/*
|
||||||
|
$this->addFooterJS('
|
||||||
|
$("body").on("click", "span.openpopupbox", function(e) {
|
||||||
|
$(""+$(e.target).data("href")).toggle();
|
||||||
|
// $("div.popupbox").toggle();
|
||||||
|
});
|
||||||
|
');
|
||||||
|
*/
|
||||||
$html = '
|
$html = '
|
||||||
<span class="openpopupbox">'.$title.'</span>
|
<span class="openpopupbox" data-href="#'.$id.'">'.$title.'</span>
|
||||||
<div class="popupbox" style="display: none;">
|
<div id="'.$id.'" class="popupbox" style="display: none;">
|
||||||
'.$content.'
|
'.$content.'
|
||||||
|
<span class="closepopupbox"><i class="icon-remove"></i></span>
|
||||||
</div>';
|
</div>';
|
||||||
if($ret)
|
if($ret)
|
||||||
return $html;
|
return $html;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user