diff -r 880c4b7eb658 -r 9d5c04c1414f includes/clientside/static/comments.js --- a/includes/clientside/static/comments.js Sat Jan 17 15:16:36 2009 -0500 +++ b/includes/clientside/static/comments.js Sun Jan 25 21:18:05 2009 -0500 @@ -54,7 +54,8 @@ materializeComment(response); break; case 'error': - new MessageBox(MB_OK|MB_ICONSTOP, ( response.title ? response.title : 'Error fetching comment data' ), response.error); + load_component(['messagebox', 'fadefilter', 'flyin']); + new MessageBox(MB_OK|MB_ICONSTOP, ( response.title ? response.title : $lang.get('comment_ajax_err_generic_title') ), response.error); break; default: alert(ajax.responseText); @@ -180,8 +181,10 @@ tplvars.DATA = this_comment.comment_data; tplvars.SIGNATURE = this_comment.signature; - if ( this_comment.approved != '1' ) + if ( this_comment.approved == '0' ) tplvars.SUBJECT += ' ' + $lang.get('comment_msg_note_unapp') + ''; + else if ( this_comment.approved == '2' ) + tplvars.SUBJECT += ' ' + $lang.get('comment_msg_note_spam') + ''; // Name tplvars.NAME = this_comment.name;