* @returns {string}
*/
getCommentHtml: function ui_getCommentHtml(data) {
+ var def_name = $('<p class="comment" id="comment-name">')
+ .text(data.caller).html();
return '<div id="comment">'
+ '<p class="comment">Your default contact</p>'
- + '<p class="comment" id="comment-name">'
- + data.caller + '</p>'
+ + def_name
+ '<p class="comment" id="comment-phone">'
+ data.phoneNumber + '</p>'
+ '</div>';
},
+
/**
* Change Contact button action
* @event
* @returns {string}
*/
getContactsListElement: function ui_getContactsListElement(contact) {
- var html =
+ var caller = $('<span class="ui-li-text-sub">')
+ .text(contact.caller).html(),
+ phoneNumber = contact.phoneNumber,
+ html =
'<li class="ui-li-multiline">'
- + '<a href="#">' + contact.caller
- + '<span class="ui-li-text-sub">' +
- contact.phoneNumber
- + '</span>'
+ + '<a href="#">' + caller
+ + '<span class="ui-li-text-sub">' + phoneNumber + '</span>'
+ '</a>'
+ '</li>';
return html;