AlexTrader,
app.getRatingButton = function (item) {
if (item.sourcePlaceId === 3)
return "<span class=\"rating-disabled\"></span>";
return
"<span class='action-tooltip rating-"+(item.rating===0?'empty':'setted')+"'" +
"data-role='tooltip'" +
"data-width='200'" +
"data-show-on='click'" +
"data-auto-hide='false'" +
"data-position='left'" +
"data-bind='value: rating.content, events: { show: rating.onShow, hide: rating.onHide }'"+
">"+(item.rating!==0?item.rating:'')+"</span>";
};