src/cm/media/js/site/c_text_view_comments.js
changeset 337 614669e0e313
parent 329 00df963f91fb
child 340 9e2b9e568e42
equal deleted inserted replaced
336:f7fb42d3f526 337:614669e0e313
   290 				var comment = gDb.getCommentByIdKey(id_key) ;
   290 				var comment = gDb.getCommentByIdKey(id_key) ;
   291 				if (comment != null) {
   291 				if (comment != null) {
   292 					var path = gDb.getPath(comment) ;
   292 					var path = gDb.getPath(comment) ;
   293 					var topParentComment = path[path.length - 1] ;
   293 					var topParentComment = path[path.length - 1] ;
   294           var focusComment = gDb.getCommentByIdKey(id_key);
   294           var focusComment = gDb.getCommentByIdKey(id_key);
   295 					gSync.showFocusSingleComment(topParentComment, focusComment) ;
   295           // if comment_op=reply, show reply form
       
   296           if ("comment_op" in gGETValues) {
       
   297             gSync.showFocusSingleComment(topParentComment, focusComment, true) ;
       
   298           }
       
   299           else {
       
   300             gSync.showFocusSingleComment(topParentComment, focusComment, false) ;
       
   301           }
   296 				}
   302 				}
   297 			}
   303 			}
   298 			
   304 
   299 			// if comment_auto_display: show all comments
   305 			// if comment_auto_display: show all comments
   300 			if ("comments_auto_display" in gGETValues) {
   306 			if ("comments_auto_display" in gGETValues) {
   301 				gSync.showAllComments();
   307 				gSync.showAllComments();
   302 			}
   308 			}
   303 			
   309