From d8478fa7ad506483e2d4d38f28c328bd74afd60e Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Wed, 29 Apr 2020 13:52:54 +0200 Subject: [PATCH] Fix typo --- assets/js/pages/settings/sections/emojis.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/assets/js/pages/settings/sections/emojis.js b/assets/js/pages/settings/sections/emojis.js index 08047bd5..eb6c9cce 100644 --- a/assets/js/pages/settings/sections/emojis.js +++ b/assets/js/pages/settings/sections/emojis.js @@ -157,12 +157,12 @@ class EmojiesSection { }); - const shorcutInput = createFormGroup({ + const shortcutInput = createFormGroup({ target: boxBody, - label: "Shorcut (starting and ending with a semicolon)", + label: "Shortcut (starting and ending with a semicolon)", placeholder: ":myEmoticon:", type: "text", - name: "shorcut" + name: "shortcut" }) const associatedImage = createFormGroup({ @@ -192,9 +192,9 @@ class EmojiesSection { e.preventDefault(); try { - const shorcut = shorcutInput.value - if(!checkEmojiCode(shorcut)) { - return notify("Invalid shorcut!", "danger"); + const shortcut = shortcutInput.value + if(!checkEmojiCode(shortcut)) { + return notify("Invalid shortcut!", "danger"); } if(associatedImage.files.length != 1) { @@ -202,7 +202,7 @@ class EmojiesSection { } const fd = new FormData() - fd.append("shorcut", shorcut) + fd.append("shortcut", shortcut) fd.append("image", associatedImage.files[0]) await SettingsInterface.uploadEmoji(fd)