Skip to content

Commit

Permalink
Allow ajax page links to have a title, defaulting to the link descrip…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
bramley committed Nov 9, 2023
1 parent aaf6f21 commit 487809f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public_html/lists/admin/connect.php
Original file line number Diff line number Diff line change
Expand Up @@ -1262,10 +1262,10 @@ function PageLinkDialogOnly($name, $desc = '', $url = '', $extraclass = '')
return $link;
}

function PageLinkAjax($name, $desc = '', $url = '', $extraclass = '')
function PageLinkAjax($name, $desc = '', $url = '', $extraclass = '', $title = '')
{
//# as PageLink2, but add the option to ajax it in a popover window
$link = PageLink2($name, $desc, $url);
$link = PageLink2($name, $desc, $url, false, $title ?: $desc);
if ($link) {
$link = str_replace('<a ', '<a class="ajaxable '.$extraclass.'" ', $link);
$link .= '';
Expand Down

0 comments on commit 487809f

Please sign in to comment.