mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
19 lines
443 B
JavaScript
19 lines
443 B
JavaScript
(function() {
|
|
// Get application context
|
|
var app = Sammy.apps['#main'];
|
|
var store = app.store;
|
|
|
|
/**
|
|
* Events
|
|
*
|
|
*/
|
|
app.bind('login', function(e, data) {
|
|
this.api('/version', function(versions) {
|
|
$('#yunohost-version').html(y18n.t('footer_version', [versions.yunohost]));
|
|
});
|
|
});
|
|
|
|
app.bind('logout', function(e, data) {
|
|
$('#yunohost-version').empty();
|
|
});
|
|
})();
|