src/cm/media/js/site/c_text_view_comments.js
changeset 340 9e2b9e568e42
parent 337 614669e0e313
child 341 053551f213fb
equal deleted inserted replaced
339:0508284129cf 340:9e2b9e568e42
   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           // if comment_op=reply, show reply form
   295           // if comment_op=reply, show reply form
   296           if ("comment_op" in gGETValues) {
   296           if ("comment_op" in gGETValues && gGETValues["comment_op"] == 'reply') {
   297             gSync.showFocusSingleComment(topParentComment, focusComment, true) ;
   297             gSync.showFocusSingleComment(topParentComment, focusComment, true) ;
   298           }
   298           }
   299           else {
   299           else {
   300             gSync.showFocusSingleComment(topParentComment, focusComment, false) ;
   300             gSync.showFocusSingleComment(topParentComment, focusComment, false) ;
   301           }
   301           }