From f70f31943adfed53eb41c29bde0c5057641b8f04 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Tue, 18 Jun 2013 19:55:26 +0200 Subject: [PATCH] Fixes typo and formatting --- wcfsetup/install/files/js/WCF.Message.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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(); } }, -- 2.20.1