| 
									
										
										
										
											2010-11-15 17:45:58 -08:00
										 |  |  | /** | 
					
						
							|  |  |  |  * modplus.js | 
					
						
							|  |  |  |  * (c) 2010 StatusNet, Inc | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | $(function() { | 
					
						
							| 
									
										
										
										
											2011-03-18 16:35:50 -07:00
										 |  |  |     // Notice lists...
 | 
					
						
							| 
									
										
										
										
											2013-09-10 18:52:09 +02:00
										 |  |  |     $(document).on('mouseenter', '.notice .author', function(e) { | 
					
						
							| 
									
										
										
										
											2011-03-18 16:23:22 -07:00
										 |  |  |         var notice = $(this).closest('.notice'); | 
					
						
							|  |  |  |         var popup = notice.find('.remote-profile-options'); | 
					
						
							|  |  |  |         if (popup.length) { | 
					
						
							|  |  |  |             popup.fadeIn(); | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |     }); | 
					
						
							| 
									
										
										
										
											2013-09-10 18:52:09 +02:00
										 |  |  |     $(document).on('mouseleave', '.notice', function(e) { | 
					
						
							| 
									
										
										
										
											2011-03-18 16:23:22 -07:00
										 |  |  |         var notice = $(this); | 
					
						
							|  |  |  |         var popup = notice.find('.remote-profile-options'); | 
					
						
							|  |  |  |         if (popup.length) { | 
					
						
							|  |  |  |             popup.fadeOut(); | 
					
						
							| 
									
										
										
										
											2010-11-15 17:45:58 -08:00
										 |  |  |         } | 
					
						
							|  |  |  |     }); | 
					
						
							| 
									
										
										
										
											2011-03-18 16:35:50 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  |     // Profile lists...
 | 
					
						
							| 
									
										
										
										
											2013-09-10 18:52:09 +02:00
										 |  |  |     $(document).on('mouseenter', '.profile .avatar', function(e) { | 
					
						
							| 
									
										
										
										
											2011-03-18 16:35:50 -07:00
										 |  |  |         var profile = $(this).closest('.profile'); | 
					
						
							|  |  |  |         var popup = profile.find('.remote-profile-options'); | 
					
						
							|  |  |  |         if (popup.length) { | 
					
						
							|  |  |  |             popup.fadeIn(); | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |     }); | 
					
						
							| 
									
										
										
										
											2013-09-10 18:52:09 +02:00
										 |  |  |     $(document).on('mouseleave', '.profile', function(e) { | 
					
						
							| 
									
										
										
										
											2011-03-18 16:35:50 -07:00
										 |  |  |         var profile = $(this); | 
					
						
							|  |  |  |         var popup = profile.find('.remote-profile-options'); | 
					
						
							|  |  |  |         if (popup.length) { | 
					
						
							|  |  |  |             popup.fadeOut(); | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |     }); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-11-15 17:45:58 -08:00
										 |  |  | }); |