app.getRatingButton = function (item) {
if (item.sourcePlaceId !== 3) {
if(item.rating === 0)
return "<span class='action-tooltip rating-empty'" +
"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 }'></span>";*/!*
else
return "<span class='action-tooltip rating-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 +
"</span>";*/!*
} else {
return "<span class=\"rating-disabled\"></span>";
}
};
Не только класс ведь