mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-17 12:11:16 -05:00
Broken tests, let's try popping in/out now to see how that works.
This commit is contained in:
parent
d4d282e919
commit
9161b8529f
3 changed files with 2 additions and 15 deletions
|
@ -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'),
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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; }
|
||||
|
|
Loading…
Reference in a new issue