add comments_auto_display parameter to embed to auto expand comments
authorraph
Fri, 14 May 2010 15:16:01 +0200
changeset 276 0e0884a093bc
parent 275 5339e9e0e186
child 277 588ca38ccb61
add comments_auto_display parameter to embed to auto expand comments
src/cm/media/js/site/c_text_view_comments.js
--- a/src/cm/media/js/site/c_text_view_comments.js	Fri May 14 12:13:43 2010 +0200
+++ b/src/cm/media/js/site/c_text_view_comments.js	Fri May 14 15:16:01 2010 +0200
@@ -295,6 +295,11 @@
 				}
 			}
 			
+			// if comment_auto_display: show all comments
+			if ("comments_auto_display" in gGETValues) {
+				gSync.showAllComments();
+			}
+			
 //			else {
 //			gSync.showAllComments() ;// show all
 //			}