mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 12:14:12 +00:00 
			
		
		
		
	Made the notification system lives.
This commit is contained in:
		@@ -50,6 +50,17 @@ ComunicWeb.components.notifications.ui = {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							//Create notification action
 | 
				
			||||||
 | 
							var action = function(){
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
								if(data.on_elem_type = "post"){
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
									openPage("post/" + data.on_elem_id);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		//Create the notification object
 | 
							//Create the notification object
 | 
				
			||||||
		var notificationContener = createElem2({
 | 
							var notificationContener = createElem2({
 | 
				
			||||||
			appendTo: target,
 | 
								appendTo: target,
 | 
				
			||||||
@@ -62,6 +73,7 @@ ComunicWeb.components.notifications.ui = {
 | 
				
			|||||||
			appendTo: notificationContener,
 | 
								appendTo: notificationContener,
 | 
				
			||||||
			type: "a"
 | 
								type: "a"
 | 
				
			||||||
		});
 | 
							});
 | 
				
			||||||
 | 
							notificationLink.onclick = action;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		//Add notification left content
 | 
							//Add notification left content
 | 
				
			||||||
		var notificationLeftContent = createElem2({
 | 
							var notificationLeftContent = createElem2({
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user