samples/cordova/text_chat/www/js/ui_helpers.js
function buildUserHtml(userLogin, userId, isNew) {
  var userHtml = "<a href='#' id='" + userId;
  if(isNew){
    userHtml += "_new'";
  }else{
    userHtml += "'";
  }
  userHtml += " class='col-md-12 col-sm-12 col-xs-12 users_form' onclick='";
  userHtml += "clickToAdd";
  userHtml += "(\"";
  userHtml += userId;
  if(isNew){
    userHtml += "_new";
  }
  userHtml += "\")'>";
  userHtml += userLogin;
  userHtml +="</a>";

  return userHtml;
}
function buildUserHtml(userLogin, userId, isNew) {
  var userHtml = "<a href='#' id='" + userId;
  if(isNew){
    userHtml += "_new'";
  }else{
    userHtml += "'";
  }
  userHtml += " class='col-md-12 col-sm-12 col-xs-12 users_form' onclick='";
  userHtml += "clickToAdd";
  userHtml += "(\"";
  userHtml += userId;
  if(isNew){
    userHtml += "_new";
  }
  userHtml += "\")'>";
  userHtml += userLogin;
  userHtml +="</a>";

  return userHtml;
}
function buildUserHtml ( userLogin , userId , isNew ) { var userHtml = "<a href='#' id='" + userId ; if ( isNew ) { userHtml += "_new'" ; } else { userHtml += "'" ; } userHtml += " class='col-md-12 col-sm-12 col-xs-12 users_form' onclick='" ; userHtml += "clickToAdd" ; userHtml += "(\"" ; userHtml += userId ; if ( isNew ) { userHtml += "_new" ; } userHtml += "\")'>" ; userHtml += userLogin ; userHtml += "</a>" ; return userHtml ; }
build html for users list
build html for users list