toggle friends box on title click
This commit is contained in:
parent
f5930c3b70
commit
80baf856dc
|
@ -7,7 +7,7 @@ import controllers.routes
|
|||
|
||||
trait AssetHelper {
|
||||
|
||||
val assetVersion = 24
|
||||
val assetVersion = 25
|
||||
|
||||
def cssTag(name: String) = css("stylesheets/" + name)
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
3
todo
|
@ -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
|
||||
|
||||
---
|
||||
|
||||
|
|
Loading…
Reference in a new issue