mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 04:04:20 +00:00 
			
		
		
		
	Can send file from chat box
This commit is contained in:
		@@ -159,6 +159,7 @@ const ConvChatWindow = {
 | 
				
			|||||||
			type: "input",
 | 
								type: "input",
 | 
				
			||||||
			elemType: "file",
 | 
								elemType: "file",
 | 
				
			||||||
		});
 | 
							});
 | 
				
			||||||
 | 
							fileInput.accept = ServerConfig.conf.allowed_conversation_files_type.join(", ");
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		//Create button group
 | 
							//Create button group
 | 
				
			||||||
@@ -216,7 +217,7 @@ const ConvChatWindow = {
 | 
				
			|||||||
			createElem2({
 | 
								createElem2({
 | 
				
			||||||
				type: "i",
 | 
									type: "i",
 | 
				
			||||||
				appendTo: fileButton, 
 | 
									appendTo: fileButton, 
 | 
				
			||||||
				class: "fa fa-image"
 | 
									class: "fa fa-plus"
 | 
				
			||||||
			});
 | 
								});
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		//Add send button
 | 
							//Add send button
 | 
				
			||||||
@@ -234,8 +235,8 @@ const ConvChatWindow = {
 | 
				
			|||||||
				class: "fa fa-send-o",
 | 
									class: "fa fa-send-o",
 | 
				
			||||||
			});
 | 
								});
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		console.info(infosBox)
 | 
							
 | 
				
			||||||
		//ConversationsUtils.registerInputToSendFile(, fileInput, formContainer);
 | 
							ConversationsUtils.registerInputToSendFile(infosBox.conversationID, fileInput, conversationFormContainer);
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		// =========== /SEND FILES ===========
 | 
							// =========== /SEND FILES ===========
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -138,9 +138,7 @@ ComunicWeb.components.conversations.manager = {
 | 
				
			|||||||
			}
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			//Open the first conversation
 | 
								//Open the first conversation
 | 
				
			||||||
			ComunicWeb.components.conversations.manager.addConversation({
 | 
								ComunicWeb.components.conversations.manager.addConversation(result.conversationsID[0]);
 | 
				
			||||||
				conversationID: result.conversationsID[0],
 | 
					 | 
				
			||||||
			});
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
		};
 | 
							};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user