ES6: A couple of views
This commit is contained in:
parent
f297517055
commit
3ac688d763
|
@ -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>
|
||||||
|
|
|
@ -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() {
|
|
@ -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']
|
Loading…
Reference in New Issue