tooltip error
tooltip error
In Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15
The next error occured
settings(current) is undefined
http://phonesys.oml.ru:8080/js/jquery-tooltip/jquery.tooltip.min.js
Line 16
helper.url.hide();helper.parent.addCla...(current).fade,current.tOpacity);else
My code:
$('.tooltip').tooltip({
"extraClass": "pretty ui-corner-all",
"bodyHandler": function() {
return $(this).attr("data");
}
});
<span class="object-state tooltip
{if object['total_channels'] != null && object['total_channels'] <= 0}
{if object['peerstatus'] && (object['peerstatus']['sip'] != null && object.peerstatus.sip.charAt(0) != 'r') && (object['peerstatus']['iax2'] != null && object.peerstatus.iax2.charAt(0) != 'r') && !object['dahdi_channel']}
unavailable
{else}
not-inuse
{/if}
{elseif object['total_channels'] != null}
inuse
{/if}
" data="
<div>АТС: ${object['addr']|escape}</div>
<div>Рабочий телефон: ${object['objectname']|escape}</div>
{if object['agent'] && object['agent']['agent_id']}
<div>Номер агента: ${object['agent']['agent_id']|escape}</div>
{/if}
<div>Суммарный статус: {if object['total_channels']}<span class='inuse'>Занят</span>(${object['total_channels']}){else}<span class='not-inuse'>Свободен</span>{/if}</div>
<div>DAHDI телефон: {if object['dahdi_channel']}да{else}<span style='color: maroon'>нет</span>{/if}</div>
<div>Софтфоны:
{for tech in object['peerstatus']}
<div> ${tech_index|escape}: ${tech|escape}</div>
{/for}</div>
<div>Линии:
{for tech in object['channels']}
<div> ${tech_index|escape}: ${tech.count}</div>
{/for}</div>
">${object['objectname']|escape}</span>