find this
function voting_cell($mode, $num, $id)
{
return "<li><a id='$mode$id' class='voting_$mode' href='javascript:JOSC_voting($id,\"$mode\")'>$num</a></li>";
}
function voting($voting_no, $voting_yes, $id, $contentId)
{
$html = '';
if ($this->_voting_visible) {
if ($voting_yes == '') {
$voting_yes = 0;
$voting_no = 0;
}
$html .= "<ul class='voting'>";
$html .= $this->voting_cell('yes', $voting_yes, $id);
$html .= $this->voting_cell('no', $voting_no, $id) ;
$html .= '</ul>';
}
/*
* If voting no are 2x greater than voting yes => mode hide
*/
$this->_hide = (($voting_no + 1) > (($voting_yes + 1) * 2));
return $html;
}
and replace by
function voting_cell($mode, $num, $id, $tooltip = '')
{
$onmouseover = "";
if (!empty($tooltip))
{
$onmouseover = "alt=\"$tooltip\" title=\"$tooltip\"";
}
return "<li><a id='$mode$id' $onmouseover class='voting_$mode' href='javascript:JOSC_voting($id,\"$mode\")'>$num</a></li>";
}
function voting($voting_no, $voting_yes, $id, $contentId)
{
$html = '';
if ($this->_voting_visible) {
if ($voting_yes == '') {
$voting_yes = 0;
$voting_no = 0;
}
$html .= "<ul class='voting'>";
$html .= $this->voting_cell('yes', $voting_yes, $id, 'Higher kudos');
$html .= $this->voting_cell('no', $voting_no, $id, 'Lower kudos') ;
$html .= '</ul>';
}
/*
* If voting no are 2x greater than voting yes => mode hide
*/
$this->_hide = (($voting_no + 1) > (($voting_yes + 1) * 2));
return $html;
}