Fixes typo and formatting
authorMatthias Schmidt <gravatronics@live.com>
Tue, 18 Jun 2013 17:55:26 +0000 (19:55 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Tue, 18 Jun 2013 17:55:26 +0000 (19:55 +0200)
wcfsetup/install/files/js/WCF.Message.js

index f95e26ceae8a22d95650223af7aafe5ac40c12bf..f6787eceabf77f67ee337b1dd9a19a69d8c79637 100644 (file)
@@ -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();
                }
        },