mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-03 19:54:14 +00:00 
			
		
		
		
	Fix typo
This commit is contained in:
		@@ -157,12 +157,12 @@ class EmojiesSection {
 | 
				
			|||||||
		});
 | 
							});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		const shorcutInput = createFormGroup({
 | 
							const shortcutInput = createFormGroup({
 | 
				
			||||||
			target: boxBody,
 | 
								target: boxBody,
 | 
				
			||||||
			label: "Shorcut (starting and ending with a semicolon)",
 | 
								label: "Shortcut (starting and ending with a semicolon)",
 | 
				
			||||||
			placeholder: ":myEmoticon:",
 | 
								placeholder: ":myEmoticon:",
 | 
				
			||||||
			type: "text",
 | 
								type: "text",
 | 
				
			||||||
			name: "shorcut"
 | 
								name: "shortcut"
 | 
				
			||||||
		})
 | 
							})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		const associatedImage = createFormGroup({
 | 
							const associatedImage = createFormGroup({
 | 
				
			||||||
@@ -192,9 +192,9 @@ class EmojiesSection {
 | 
				
			|||||||
			e.preventDefault();
 | 
								e.preventDefault();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			try {
 | 
								try {
 | 
				
			||||||
				const shorcut = shorcutInput.value
 | 
									const shortcut = shortcutInput.value
 | 
				
			||||||
				if(!checkEmojiCode(shorcut)) {
 | 
									if(!checkEmojiCode(shortcut)) {
 | 
				
			||||||
					return notify("Invalid shorcut!", "danger");
 | 
										return notify("Invalid shortcut!", "danger");
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				if(associatedImage.files.length != 1) {
 | 
									if(associatedImage.files.length != 1) {
 | 
				
			||||||
@@ -202,7 +202,7 @@ class EmojiesSection {
 | 
				
			|||||||
				}
 | 
									}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				const fd = new FormData()
 | 
									const fd = new FormData()
 | 
				
			||||||
				fd.append("shorcut", shorcut)
 | 
									fd.append("shortcut", shortcut)
 | 
				
			||||||
				fd.append("image", associatedImage.files[0])
 | 
									fd.append("image", associatedImage.files[0])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				await SettingsInterface.uploadEmoji(fd)
 | 
									await SettingsInterface.uploadEmoji(fd)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user