fix quote reply regression

This commit is contained in:
Sam 2013-04-11 16:32:56 +10:00
parent 850b042cab
commit 3860a9302b
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ Discourse.QuoteButtonController = Discourse.Controller.extend({
var selection = window.getSelection(); var selection = window.getSelection();
// no selections // no selections
if (selection.type !== "Range") return; if (selection.rangeCount === 0) return;
// retrieve the selected range // retrieve the selected range
var range = selection.getRangeAt(0), var range = selection.getRangeAt(0),