mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 04:04:20 +00:00 
			
		
		
		
	Ready to get general information about the users
This commit is contained in:
		@@ -571,6 +571,20 @@ var ComunicWeb = {
 | 
				
			|||||||
			//TODO : implement
 | 
								//TODO : implement
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							/**
 | 
				
			||||||
 | 
							 * Settings component
 | 
				
			||||||
 | 
							 */
 | 
				
			||||||
 | 
							settings: {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
								/**
 | 
				
			||||||
 | 
								 * Settings interface
 | 
				
			||||||
 | 
								 */
 | 
				
			||||||
 | 
								interface: {
 | 
				
			||||||
 | 
									//TODO : implement
 | 
				
			||||||
 | 
								},
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							},
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		/**
 | 
							/**
 | 
				
			||||||
		 * Friends list
 | 
							 * Friends list
 | 
				
			||||||
		 */
 | 
							 */
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										11
									
								
								assets/js/components/settings/interface.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								assets/js/components/settings/interface.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
				
			|||||||
 | 
					/**
 | 
				
			||||||
 | 
					 * Settings interface
 | 
				
			||||||
 | 
					 * 
 | 
				
			||||||
 | 
					 * @author Pierre HUBERT
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					ComunicWeb.components.settings.interface = {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -52,7 +52,7 @@ ComunicWeb.pages.settings.main = {
 | 
				
			|||||||
			var section = ComunicWeb.pages.settings.sectionsList[section];
 | 
								var section = ComunicWeb.pages.settings.sectionsList[section];
 | 
				
			||||||
			
 | 
								
 | 
				
			||||||
			//Update document title
 | 
								//Update document title
 | 
				
			||||||
			document.title += section.title;
 | 
								document.title += " - " + section.title;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			//Call handler
 | 
								//Call handler
 | 
				
			||||||
			eval(section.handler + "(args, rightArea);");
 | 
								eval(section.handler + "(args, rightArea);");
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -60,6 +60,9 @@ ComunicWeb.pages.settings.navigationPane = {
 | 
				
			|||||||
			type: "a",
 | 
								type: "a",
 | 
				
			||||||
			innerHTML: "<i class='fa fa-user'></i> General"
 | 
								innerHTML: "<i class='fa fa-user'></i> General"
 | 
				
			||||||
		});
 | 
							});
 | 
				
			||||||
 | 
							sectionGeneralLink.onclick = function(){
 | 
				
			||||||
 | 
								openPage("settings/general");
 | 
				
			||||||
 | 
							};
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -13,7 +13,24 @@ ComunicWeb.pages.settings.sections.general = {
 | 
				
			|||||||
	 * @param {HTMLElement} target The target for the page
 | 
						 * @param {HTMLElement} target The target for the page
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
	open: function(args, target){
 | 
						open: function(args, target){
 | 
				
			||||||
		alert("hey");
 | 
							
 | 
				
			||||||
 | 
							//Create a box
 | 
				
			||||||
 | 
							var box = createElem2({
 | 
				
			||||||
 | 
								appendTo: target,
 | 
				
			||||||
 | 
								type: "div",
 | 
				
			||||||
 | 
								class: "box box-primary"
 | 
				
			||||||
 | 
							});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							//Create box body
 | 
				
			||||||
 | 
							var boxBody = createElem2({
 | 
				
			||||||
 | 
								appendTo: box,
 | 
				
			||||||
 | 
								type: "div",
 | 
				
			||||||
 | 
								class: "box-body"
 | 
				
			||||||
 | 
							});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							//Display loading message
 | 
				
			||||||
 | 
							var loadingMsg = ComunicWeb.common.messages.createCalloutElem("Loading", "Please wait while this page is loading...", "info");
 | 
				
			||||||
 | 
							boxBody.appendChild(loadingMsg);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
@@ -219,6 +219,9 @@ class Dev {
 | 
				
			|||||||
			//Search form
 | 
								//Search form
 | 
				
			||||||
			"js/components/searchForm/searchForm.js",
 | 
								"js/components/searchForm/searchForm.js",
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
								//Settings
 | 
				
			||||||
 | 
								"js/components/settings/interface.js",
 | 
				
			||||||
 | 
								
 | 
				
			||||||
			//Main menubar
 | 
								//Main menubar
 | 
				
			||||||
			"js/components/menuBar/common.js",
 | 
								"js/components/menuBar/common.js",
 | 
				
			||||||
			"js/components/menuBar/notAuthenticated.js",
 | 
								"js/components/menuBar/notAuthenticated.js",
 | 
				
			||||||
@@ -322,6 +325,7 @@ class Dev {
 | 
				
			|||||||
			"js/pages/settings/main.js",
 | 
								"js/pages/settings/main.js",
 | 
				
			||||||
			"js/pages/settings/navigationPane.js",
 | 
								"js/pages/settings/navigationPane.js",
 | 
				
			||||||
			"js/pages/settings/sectionsList.js",
 | 
								"js/pages/settings/sectionsList.js",
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				//Settings sections
 | 
									//Settings sections
 | 
				
			||||||
				"js/pages/settings/sections/general.js",
 | 
									"js/pages/settings/sections/general.js",
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user