openmedialibrary/static/js/welcomeDialog.js

37 lines
1.1 KiB
JavaScript
Raw Normal View History

2014-05-04 17:26:43 +00:00
'use strict';
oml.ui.welcomeDialog = function() {
var that = oml.ui.iconDialog({
buttons: [
2016-01-13 08:24:44 +00:00
Ox.Button({
id: 'preferences',
style: 'squared',
title: Ox._('Preferences...')
})
.bindEvent({
click: function() {
oml.UI.set({page: 'preferences'});
}
}),
{},
2014-05-04 17:26:43 +00:00
Ox.Button({
id: 'close',
2016-01-13 08:20:03 +00:00
style: 'squared',
2014-05-04 17:26:43 +00:00
title: Ox._('Close')
})
.bindEvent({
click: function() {
oml.UI.set({page: ''});
}
})
],
content: 'Welcome! To get started, you may want to set your '
2016-01-13 08:20:03 +00:00
+ 'library path, import some media, choose a username '
+ 'and add a few peers.',
2014-05-04 17:26:43 +00:00
title: Ox._('Welcome to Open Media Library')
});
return that;
};