Broken tests, let's try popping in/out now to see how that works.

This commit is contained in:
Robin Ward 2014-11-04 13:46:35 -05:00
parent d4d282e919
commit 9161b8529f
3 changed files with 2 additions and 15 deletions

View file

@ -8,6 +8,7 @@ export default ObjectController.extend(Discourse.SelectedPostsCount, {
selectedPosts: null,
selectedReplies: null,
queryParams: ['filter', 'username_filters', 'show_deleted'],
searchHighlight: null,
maxTitleLength: Discourse.computed.setting('max_topic_title_length'),

View file

@ -47,7 +47,6 @@ export default ObjectController.extend({
} else {
this.set('avatar', null);
}
this.set('username', username);
// If we click the avatar again, close it.

View file

@ -6,22 +6,9 @@ var clickOutsideEventName = "mousedown.outside-user-card",
export default Discourse.View.extend(CleansUp, {
elementId: 'user-card',
classNameBindings: ['controller.showBadges'],
classNameBindings: ['controller.visible::hidden', 'controller.showBadges'],
allowBackgrounds: Discourse.computed.setting('allow_profile_backgrounds'),
_visibleChanged: function() {
var vis = this.get('controller.visible'),
$this = this.$();
if (!$this) { return; }
if (vis) {
this.$().fadeIn('fast');
} else {
this.$().fadeOut('fast');
}
}.observes('controller.visible'),
addBackground: function() {
var url = this.get('controller.user.card_background');
if (!this.get('allowBackgrounds')) { return; }