toggle friends box on title click

This commit is contained in:
Thibault Duplessis 2013-06-02 17:44:41 +02:00
parent f5930c3b70
commit 80baf856dc
4 changed files with 11 additions and 9 deletions

View file

@ -7,7 +7,7 @@ import controllers.routes
trait AssetHelper {
val assetVersion = 24
val assetVersion = 25
def cssTag(name: String) = css("stylesheets/" + name)

View file

@ -1313,11 +1313,15 @@ var lichess_sri = Math.random().toString(36).substring(5); // 8 chars
$.widget("lichess.friends", {
_create: function() {
this.$nbOnline = this.element.find('.title .online');
this.$nbTotal = this.element.find('.title .total');
this.$list = this.element.find("div.list");
this.$nobody = this.element.find("div.nobody");
this.set(this.element.data('preload'));
var self = this;
self.$list = self.element.find("div.list");
self.$title = self.element.find('.title').click(function() {
self.$list.toggle(500);
});
self.$nbOnline = self.$title.find('.online');
self.$nbTotal = self.$title.find('.total');
self.$nobody = self.element.find("div.nobody");
self.set(self.element.data('preload'));
},
repaint: function() {
this.users = _.uniq(this.users);

View file

@ -580,6 +580,7 @@ a#sound_state.unavailable {
min-width: 150px;
}
#friend_box .title {
cursor: pointer;
padding: 3px 5px;
border-bottom: 1px solid #ccc;
border-radius: 4px 4px 0 0;

3
todo
View file

@ -65,13 +65,10 @@ if game ends during move -> bug
LilaError['[analysis] fred65 already analyses ueogn4fr, won't process ueogn4fr']
unload event http://en.lichess.org/forum/redirect/post/lnsqfhli
-> only rated games
friend box hide on click http://en.lichess.org/forum/lichess-feedback/new-lichess-1#3
can't delete messages http://www.youtube.com/watch?v=vPNS49ygvCI&feature=youtu.be
preview board should never touch undertables
denormalize user.count.*
forum search bug http://en.lichess.org/forum/search?text=user:SOHAIB
troll messages
games with you on own page
---