Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Broworkers
RailsPG
Commits
43ddffa3
Commit
43ddffa3
authored
Oct 14, 2012
by
Daniel Libanori
Browse files
Merge branch 'master' of github.com:railsrumble/r12-team-508
parents
203c8e94
a470d9f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
app/assets/javascripts/chats.js.coffee
app/assets/javascripts/chats.js.coffee
+20
-2
No files found.
app/assets/javascripts/chats.js.coffee
View file @
43ddffa3
...
...
@@ -130,13 +130,31 @@ $ ->
cache
:
false
success
:
(
data
)
->
$
(
'div.players ul'
).
html
data
$
(
'div.players ul li'
).
loadSheetControl
()
;
$
(
'div.players ul li
button
'
).
loadSheetControl
()
complete
:
window
.
setTimeout
$
.
fn
.
loadPlayers
,
5000
$
.
fn
.
loadPlayers
()
$
.
fn
.
closeSheetControl
=
->
$
(
this
).
click
->
$
(
'div.sheet'
).
slideUp
'fast'
,
->
$
(
'div.players'
).
slideDown
(
'fast'
)
$
(
'div.sheet'
).
hide
()
$
.
fn
.
loadSheetControl
=
->
$
(
this
).
click
->
$
(
'div.players'
).
slideUp
(
'fast'
)
$
(
'div.players'
).
slideUp
'fast'
,
->
$
(
'div.sheet'
).
slideDown
(
'fast'
)
$
.
ajax
url
:
'/users/'
+
$
(
this
).
attr
(
'data-id'
)
cache
:
false
beforeSend
:
->
$
(
'div.sheet'
).
html
'Loading...'
success
:
(
data
)
->
$
(
'div.sheet'
).
html
data
$
(
'div.sheet button.close'
).
closeSheetControl
()
error
:
->
$
(
'div.players'
).
slideDown
(
'fast'
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment