src/cm/media/js/site/c_text_view_comments.js
changeset 144 e7e1bc64f613
parent 103 61fd17f9ab78
child 184 0d9a2a99ffda
equal deleted inserted replaced
143:3c21b9097908 144:e7e1bc64f613
   274 			if (gLayout.isInFrame()) {
   274 			if (gLayout.isInFrame()) {
   275 				parent.f_interfaceUnfreeze() ;
   275 				parent.f_interfaceUnfreeze() ;
   276 				parent.f_removeLoadingMsg();
   276 				parent.f_removeLoadingMsg();
   277 			}
   277 			}
   278 			// if there is a comment id in the url display it
   278 			// if there is a comment id in the url display it
   279 			if ("comment_key" in gGETValues) {
   279 			if ("comment_id_key" in gGETValues) {
   280 				var key = gGETValues["comment_key"] ;
   280 				var id_key = gGETValues["comment_id_key"] ;
   281 				var comment = gDb.getCommentByKey(key) ;
   281 				var comment = gDb.getCommentByIdKey(id_key) ;
   282 				if (comment != null) {
   282 				if (comment != null) {
   283 					var path = gDb.getPath(comment) ;
   283 					var path = gDb.getPath(comment) ;
   284 					var topParentComment = path[path.length - 1] ;
   284 					var topParentComment = path[path.length - 1] ;
   285 					gSync.showSingleComment(topParentComment) ;
   285 					gSync.showSingleComment(topParentComment) ;
   286 				}
   286 				}