forked from elmau/empresa-libre
22 lines
321 B
JavaScript
22 lines
321 B
JavaScript
|
|
|
|
var controllers = {
|
|
init: function(){
|
|
//~ Admin
|
|
$$('menu_user').attachEvent('onMenuItemClick', menu_user_click)
|
|
}
|
|
}
|
|
|
|
|
|
function menu_user_click(id, e, node){
|
|
if (id == 1){
|
|
window.location = '/logout'
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
function cmd_home_click(){
|
|
window.location = '/main'
|
|
}
|