ES6: A couple of views
This commit is contained in:
parent
f297517055
commit
3ac688d763
|
@ -6,9 +6,7 @@
|
|||
|
||||
<div><input type='text' /></div>
|
||||
|
||||
{{#each shareLinks}}
|
||||
{{view Discourse.ShareLinkView contentBinding="this"}}
|
||||
{{/each}}
|
||||
{{each shareLinks itemView='share-link'}}
|
||||
|
||||
<div class='link'>
|
||||
<a href='#' {{action close}} title='{{i18n share.close}}'><i class="fa fa-times-circle"></i></a>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
var clickOutsideEventName = "mousedown.outside-poster-expansion";
|
||||
|
||||
Discourse.PosterExpansionView = Discourse.View.extend({
|
||||
export default Discourse.View.extend({
|
||||
elementId: 'poster-expansion',
|
||||
classNameBindings: ['controller.visible::hidden', 'controller.showBadges'],
|
||||
|
||||
|
@ -29,7 +29,6 @@ Discourse.PosterExpansionView = Discourse.View.extend({
|
|||
}
|
||||
}
|
||||
});
|
||||
|
||||
}.observes('controller.model'),
|
||||
|
||||
didInsertElement: function() {
|
|
@ -7,8 +7,8 @@
|
|||
@namespace Discourse
|
||||
@module Discourse
|
||||
**/
|
||||
Discourse.ShareLinkView = Discourse.View.extend({
|
||||
export default Ember.View.extend({
|
||||
templateName: 'share_link',
|
||||
tagName: 'div',
|
||||
classNameBindings: [':social-link']
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue