From: Matthias Schmidt Date: Tue, 18 Jun 2013 17:55:26 +0000 (+0200) Subject: Fixes typo and formatting X-Git-Tag: 2.0.0_Beta_4~20^2~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f70f31943adfed53eb41c29bde0c5057641b8f04;p=GitHub%2FWoltLab%2FWCF.git Fixes typo and formatting --- diff --git a/wcfsetup/install/files/js/WCF.Message.js b/wcfsetup/install/files/js/WCF.Message.js index f95e26ceae..f6787eceab 100644 --- a/wcfsetup/install/files/js/WCF.Message.js +++ b/wcfsetup/install/files/js/WCF.Message.js @@ -1826,7 +1826,7 @@ WCF.Message.Quote.Handler = Class.extend({ /** * Returns the left or right offset of the current text selection. * - * @param objct range + * @param object range * @param boolean before * @return object */ @@ -1980,16 +1980,16 @@ WCF.Message.Quote.Handler = Class.extend({ } var sel = window.getSelection(); - sel.removeAllRanges(); - sel.addRange(range); + sel.removeAllRanges(); + sel.addRange(range); } else { var textRange = document.body.createTextRange(); - textRange.moveToElementText(containerEl); - textRange.collapse(true); - textRange.moveEnd("character", savedSel.end); - textRange.moveStart("character", savedSel.start); - textRange.select(); + textRange.moveToElementText(containerEl); + textRange.collapse(true); + textRange.moveEnd("character", savedSel.end); + textRange.moveStart("character", savedSel.start); + textRange.select(); } },