includes/clientside/static/comments.js
changeset 214 a6ed8b6cdbe1
parent 212 30b857a6b811
child 328 dc838fd61a06
equal deleted inserted replaced
213:1316404e4ea8 214:a6ed8b6cdbe1
   217   tplbool.auth_mod = data.auth_mod_comments;
   217   tplbool.auth_mod = data.auth_mod_comments;
   218   tplbool.is_friend = ( this_comment.is_buddy == 1 && this_comment.is_friend == 1 );
   218   tplbool.is_friend = ( this_comment.is_buddy == 1 && this_comment.is_friend == 1 );
   219   tplbool.is_foe = ( this_comment.is_buddy == 1 && this_comment.is_friend == 0 );
   219   tplbool.is_foe = ( this_comment.is_buddy == 1 && this_comment.is_friend == 0 );
   220   
   220   
   221   if ( tplbool.is_friend )
   221   if ( tplbool.is_friend )
   222     tplvars.USER_LEVEL += '<br /><b>On your friend list</b>';
   222     tplvars.USER_LEVEL += '<br /><b>' + $lang.get('comment_on_friend_list') + '</b>';
   223   else if ( tplbool.is_foe )
   223   else if ( tplbool.is_foe )
   224     tplvars.USER_LEVEL += '<br /><b>On your foe list</b>';
   224     tplvars.USER_LEVEL += '<br /><b>' + $lang.get('comment_on_foe_list') + '</b>';
   225   
   225   
   226   parser.assign_vars(tplvars);
   226   parser.assign_vars(tplvars);
   227   parser.assign_bool(tplbool);
   227   parser.assign_bool(tplbool);
   228   
   228   
   229   return '<div id="comment_holder_' + i + '"><input type="hidden" value="'+this_comment.comment_id+'" /><input type="hidden" id="comment_source_'+i+'" />' + parser.run() + '</div>';
   229   return '<div id="comment_holder_' + i + '"><input type="hidden" value="'+this_comment.comment_id+'" /><input type="hidden" id="comment_source_'+i+'" />' + parser.run() + '</div>';