repo.or.cz
/
cxgn-jslib.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
adding a semicolon... yay!
[cxgn-jslib.git]
/
CXGN
/
User.js
blob
385e02ee9b7f6ef0f2207f5a5416c6af2733e237
1
/**
2
3
=head1 User.js
4
5
Keep track of sgn user variables for use by other modules
6
7
=cut
8
9
**/
10
11
12
JSAN
.
use
(
"CXGN.Cookie"
);
13
14
var
User
=
window
.
User
|| {};
15
16
User
= {
17
sgn_user_id
:
''
,
18
sgn_session_id
:
''
,
19
_init
:
function
() {
20
User
.
sgn_user_id
=
Cookie
.
get
(
'user_id'
);
21
User
.
sgn_session_id
=
Cookie
.
get
(
'sgn_session_id'
);
22
}
23
}
24
User
.
_init
();