ES6: A couple of views

This commit is contained in:
Robin Ward 2014-06-20 13:28:57 -04:00
parent f297517055
commit 3ac688d763
3 changed files with 4 additions and 7 deletions

View File

@ -6,9 +6,7 @@
<div><input type='text' /></div> <div><input type='text' /></div>
{{#each shareLinks}} {{each shareLinks itemView='share-link'}}
{{view Discourse.ShareLinkView contentBinding="this"}}
{{/each}}
<div class='link'> <div class='link'>
<a href='#' {{action close}} title='{{i18n share.close}}'><i class="fa fa-times-circle"></i></a> <a href='#' {{action close}} title='{{i18n share.close}}'><i class="fa fa-times-circle"></i></a>

View File

@ -8,7 +8,7 @@
var clickOutsideEventName = "mousedown.outside-poster-expansion"; var clickOutsideEventName = "mousedown.outside-poster-expansion";
Discourse.PosterExpansionView = Discourse.View.extend({ export default Discourse.View.extend({
elementId: 'poster-expansion', elementId: 'poster-expansion',
classNameBindings: ['controller.visible::hidden', 'controller.showBadges'], classNameBindings: ['controller.visible::hidden', 'controller.showBadges'],
@ -29,7 +29,6 @@ Discourse.PosterExpansionView = Discourse.View.extend({
} }
} }
}); });
}.observes('controller.model'), }.observes('controller.model'),
didInsertElement: function() { didInsertElement: function() {

View File

@ -7,7 +7,7 @@
@namespace Discourse @namespace Discourse
@module Discourse @module Discourse
**/ **/
Discourse.ShareLinkView = Discourse.View.extend({ export default Ember.View.extend({
templateName: 'share_link', templateName: 'share_link',
tagName: 'div', tagName: 'div',
classNameBindings: [':social-link'] classNameBindings: [':social-link']