always put popup links in a, even if it is disabled

This commit is contained in:
Isaac Connor 2016-07-22 16:03:57 -04:00
parent 6d1f85bcd6
commit 8194876454
1 changed files with 2 additions and 2 deletions

View File

@ -497,11 +497,11 @@ function makePopupLink( $url, $winName, $winSize, $label, $condition=1, $options
$popupParms = "'".$url."', '".$winName."', '".$winSize."'";
$string .= '<a href="'.$url.'" onclick="createPopup( '.$popupParms.' ); return( false );"'.($options?(' '.$options):'').'>';
} else {
$string .= '<a>';
}
$string .= $label;
if ( $condition ) {
$string .= '</a>';
}
return( $string );
}