remove global check

This commit is contained in:
Sam 2013-09-11 15:58:55 +10:00
parent 681ff74cb8
commit 8516059025
2 changed files with 3 additions and 3 deletions

View File

@ -125,7 +125,9 @@
</div>
{{render share}}
{{#if currentUser.enable_quoting}}
{{render quoteButton}}
{{/if}}
{{#if currentUser.staff}}
{{render topicAdminMenu content}}

View File

@ -47,8 +47,6 @@ Discourse.QuoteButtonView = Discourse.View.extend({
.on("mousedown.quote-button", function(e) {
view.set('isMouseDown', true);
if ($(e.target).hasClass('quote-button') || $(e.target).hasClass('create')) return;
// do *not* deselect when quoting has been disabled by the user
if (!Discourse.User.currentProp('enable_quoting')) return;
// deselects only when the user left click
// (allows anyone to `extend` their selection using shift+click)
if (e.which === 1 && !e.shiftKey) controller.deselectText();