pandora/static/js/embedError.js

46 lines
1 KiB
JavaScript
Raw Normal View History

2013-03-01 11:24:33 +00:00
'use strict';
pandora.ui.embedError = function(notImplemented) {
var that = Ox.Element()
.addClass('OxScreen')
.css({
position: 'absolute',
left: 0,
top: 0,
right: 0,
bottom: 0,
});
$('<div>')
.css({
position: 'absolute',
left: 0,
top: 0,
right: 0,
bottom: 0,
width: '96px',
height: '48px',
paddingTop: '16px',
margin: 'auto'
})
.append(
$('<img>')
.css({width: '96px'})
.attr({src: '/static/png/logo.png'})
)
.append(
$('<div>')
.css({marginTop: '4px', fontSize: '9px', textAlign: 'center'})
.html(
notImplemented
2013-05-09 10:13:58 +00:00
? Ox._('This view is not<br>implemented.')
: Ox._('This view cannot<br>be embedded.')
2013-03-01 11:24:33 +00:00
)
)
.appendTo(that);
return that;
2013-05-09 10:13:58 +00:00
};