| 
														
															@@ -1006,27 +1006,34 @@ Template.room.events({ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     }, 
														 | 
														
														 | 
														
															     }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     "click #chat-tab": function(e) { 
														 | 
														
														 | 
														
															     "click #chat-tab": function(e) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         Meteor.setTimeout(function() { 
														 | 
														
														 | 
														
															         Meteor.setTimeout(function() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            var elem = document.getElementById('chat'); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            elem.scrollTop = elem.scrollHeight; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            $("#chat-ul").scrollTop(100000); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         }, 1); 
														 | 
														
														 | 
														
															         }, 1); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     }, 
														 | 
														
														 | 
														
															     }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    "click #global-tab": function(e) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    "click #global-chat-tab": function(e) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         Meteor.setTimeout(function() { 
														 | 
														
														 | 
														
															         Meteor.setTimeout(function() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            var elem = document.getElementById('global-chat'); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            elem.scrollTop = elem1.scrollHeight; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            $("#global-chat-ul").scrollTop(100000); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         }, 1); 
														 | 
														
														 | 
														
															         }, 1); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     }, 
														 | 
														
														 | 
														
															     }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     "click #submit": function() { 
														 | 
														
														 | 
														
															     "click #submit": function() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         sendMessage(); 
														 | 
														
														 | 
														
															         sendMessage(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        Meteor.setTimeout(function(){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            $("#chat-ul").scrollTop(100000); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        }, 1000) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     }, 
														 | 
														
														 | 
														
															     }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     "click #global-submit": function() { 
														 | 
														
														 | 
														
															     "click #global-submit": function() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         sendMessageGlobal(); 
														 | 
														
														 | 
														
															         sendMessageGlobal(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        Meteor.setTimeout(function(){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            $("#global-chat-ul").scrollTop(100000); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        }, 1000) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     }, 
														 | 
														
														 | 
														
															     }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     "keyup #chat-input": function(e) { 
														 | 
														
														 | 
														
															     "keyup #chat-input": function(e) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         if (e.type === "keyup" && e.which === 13) { 
														 | 
														
														 | 
														
															         if (e.type === "keyup" && e.which === 13) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             e.preventDefault(); 
														 | 
														
														 | 
														
															             e.preventDefault(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             if (!$('#chat-input').data('dropdownshown')) { 
														 | 
														
														 | 
														
															             if (!$('#chat-input').data('dropdownshown')) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 sendMessage(); 
														 | 
														
														 | 
														
															                 sendMessage(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                Meteor.setTimeout(function(){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    $("#chat-ul").scrollTop(100000); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                }, 1000) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     }, 
														 | 
														
														 | 
														
															     }, 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -1035,6 +1042,9 @@ Template.room.events({ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             e.preventDefault(); 
														 | 
														
														 | 
														
															             e.preventDefault(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             if (!$('#global-chat-input').data('dropdownshown')) { 
														 | 
														
														 | 
														
															             if (!$('#global-chat-input').data('dropdownshown')) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 sendMessageGlobal(); 
														 | 
														
														 | 
														
															                 sendMessageGlobal(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                Meteor.setTimeout(function(){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    $("#global-chat-ul").scrollTop(100000); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                }, 1000) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     }, 
														 | 
														
														 | 
														
															     }, 
														 |