src/cm/media/js/site/c_text_view_comments.js
changeset 337 614669e0e313
parent 329 00df963f91fb
child 340 9e2b9e568e42
--- a/src/cm/media/js/site/c_text_view_comments.js	Mon Nov 22 14:58:38 2010 +0100
+++ b/src/cm/media/js/site/c_text_view_comments.js	Mon Nov 29 12:07:44 2010 +0100
@@ -292,10 +292,16 @@
 					var path = gDb.getPath(comment) ;
 					var topParentComment = path[path.length - 1] ;
           var focusComment = gDb.getCommentByIdKey(id_key);
-					gSync.showFocusSingleComment(topParentComment, focusComment) ;
+          // if comment_op=reply, show reply form
+          if ("comment_op" in gGETValues) {
+            gSync.showFocusSingleComment(topParentComment, focusComment, true) ;
+          }
+          else {
+            gSync.showFocusSingleComment(topParentComment, focusComment, false) ;
+          }
 				}
 			}
-			
+
 			// if comment_auto_display: show all comments
 			if ("comments_auto_display" in gGETValues) {
 				gSync.showAllComments();