forked from 0x2620/pandora
move js files from js/pandora to js, fixes #1366
This commit is contained in:
parent
b5eda32bbd
commit
a9b7738aa8
104 changed files with 7 additions and 2 deletions
45
static/js/embedError.js
Normal file
45
static/js/embedError.js
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
'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
|
||||
? Ox._('This view is not<br>implemented.')
|
||||
: Ox._('This view cannot<br>be embedded.')
|
||||
)
|
||||
)
|
||||
.appendTo(that);
|
||||
|
||||
return that;
|
||||
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue