add makeHelpLink helper function

This commit is contained in:
Andrew Bauer 2020-09-10 17:06:27 -05:00
parent cd09ec8fef
commit 46d4f55b80
1 changed files with 7 additions and 0 deletions

View File

@ -438,6 +438,13 @@ function makeLink($url, $label, $condition=1, $options='') {
return $string;
}
//Make it slightly easier to create a link to help text modal
function makeHelpLink($ohndx) {
$string = '<a id="' .$ohndx. '" class="optionhelp" href="#">?</a>';
return $string;
}
/**
* $label must be already escaped. It can't be done here since it sometimes contains HTML tags.
*/