mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 01:56:01 -05:00
ES6: A couple of views
This commit is contained in:
parent
f297517055
commit
3ac688d763
3 changed files with 4 additions and 7 deletions
|
@ -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,7 +7,7 @@
|
|||
@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 a new issue