git://git.onelab.eu
/
myops.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add scripts to create myops-getqueryview:
[myops.git]
/
web
/
query
/
vendor
/
couchapp
/
evently
/
account
/
_init.js
1
function() {
2
var elem = $(this);
3
$$(this).userCtx = null;
4
$.couch.session({
5
success : function(r) {
6
var userCtx = r.userCtx;
7
if (userCtx.name) {
8
elem.trigger("loggedIn", [r]);
9
} else if (userCtx.roles.indexOf("_admin") != -1) {
10
elem.trigger("adminParty");
11
} else {
12
elem.trigger("loggedOut");
13
};
14
}
15
});
16
}