includes/clientside/static/comments.js
changeset 825 9d5c04c1414f
parent 779 609e35845ec3
child 827 2c20563245b2
--- 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 += ' <span style="color: #D84308">' + $lang.get('comment_msg_note_unapp') + '</span>';
+  else if ( this_comment.approved == '2' )
+    tplvars.SUBJECT += ' <span style="color: #D84308">' + $lang.get('comment_msg_note_spam') + '</span>';
   
   // Name
   tplvars.NAME = this_comment.name;