2011-10-07 09:18:42 +00:00
|
|
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
|
|
|
pandora.ui.helpDialog = function() {
|
2011-10-29 11:39:00 +00:00
|
|
|
var content = Ox.Element().css({margin: '16px'}),
|
2011-10-07 09:18:42 +00:00
|
|
|
that = Ox.Dialog({
|
|
|
|
buttons: [
|
|
|
|
Ox.Button({
|
|
|
|
id: 'close',
|
|
|
|
title: 'Close'
|
|
|
|
}).bindEvent({
|
|
|
|
click: function() {
|
|
|
|
that.close();
|
|
|
|
//fixme: this should be using URL.push / UI.set
|
|
|
|
//but that currenlty causes a reload
|
|
|
|
history.pushState({}, '', '/');
|
|
|
|
}
|
|
|
|
})
|
|
|
|
],
|
|
|
|
//closeButton: true,
|
|
|
|
content: content,
|
|
|
|
height: Math.round((window.innerHeight - 24) * 0.75),
|
|
|
|
keys: {
|
|
|
|
'escape': 'close'
|
|
|
|
},
|
|
|
|
//maximizeButton: true,
|
|
|
|
minHeight: 256,
|
|
|
|
minWidth: 640,
|
|
|
|
title: 'Help',
|
|
|
|
width: Math.round(window.innerWidth * 0.75)
|
|
|
|
});
|
2011-10-29 11:39:00 +00:00
|
|
|
pandora.api.getPage({name: 'help'}, function(result) {
|
|
|
|
//content.html(response.data.body);
|
|
|
|
content.html('Help is coming soon...')
|
2011-10-07 09:18:42 +00:00
|
|
|
});
|
|
|
|
return that;
|
|
|
|
};
|