ES6: Support for views. Quote button proof of concept

This commit is contained in:
Robin Ward 2014-06-02 12:57:35 -04:00
parent a4b4b0e53a
commit f839573d85
3 changed files with 6 additions and 2 deletions

View File

@ -61,6 +61,10 @@ Discourse.Resolver = Ember.DefaultResolver.extend({
return module;
},
resolveView: function(parsedName) {
return this.customResolve(parsedName) || this._super(parsedName);
},
resolveController: function(parsedName) {
return this.customResolve(parsedName) || this._super(parsedName);
},

View File

@ -146,7 +146,7 @@
{{render "posterExpansion"}}
{{#if currentUser.enable_quoting}}
{{render "quoteButton"}}
{{render "quote-button"}}
{{/if}}
{{#if currentUser.canManageTopic}}

View File

@ -6,7 +6,7 @@
@namespace Discourse
@module Discourse
**/
Discourse.QuoteButtonView = Discourse.View.extend({
export default Discourse.View.extend({
classNames: ['quote-button'],
classNameBindings: ['visible'],
isMouseDown: false,