forked from 0x2620/pandora
use Ox.LoadingScreen
This commit is contained in:
parent
0ef9742d0e
commit
8c8ae16019
6 changed files with 9 additions and 95 deletions
|
@ -6,21 +6,6 @@ pandora.ui.apiDialog = function() {
|
|||
var selected = pandora.user.ui.hash && pandora.user.ui.hash.anchor
|
||||
? pandora.user.ui.hash.anchor : '',
|
||||
actions,
|
||||
$loading = Ox.Element()
|
||||
.append(
|
||||
$('<img>')
|
||||
.attr({src: Ox.UI.getImageURL('symbolLoadingAnimated')})
|
||||
.css({
|
||||
position: 'absolute',
|
||||
width: '32px',
|
||||
height: '32px',
|
||||
left: 0,
|
||||
top: 0,
|
||||
right: 0,
|
||||
bottom: 0,
|
||||
margin: 'auto'
|
||||
})
|
||||
),
|
||||
|
||||
$panel, $list, $text,
|
||||
|
||||
|
@ -45,7 +30,7 @@ pandora.ui.apiDialog = function() {
|
|||
})
|
||||
],
|
||||
closeButton: true,
|
||||
content: $loading,
|
||||
content: Ox.LoadingScreen(),
|
||||
height: 384,
|
||||
keys: {escape: 'close'},
|
||||
maximizeButton: true,
|
||||
|
|
|
@ -31,20 +31,7 @@ pandora.ui.eventsDialog = function(options) {
|
|||
})
|
||||
],
|
||||
closeButton: true,
|
||||
content: Ox.Element().append(
|
||||
$('<img>')
|
||||
.attr({src: Ox.UI.getImageURL('symbolLoadingAnimated')})
|
||||
.css({
|
||||
position: 'absolute',
|
||||
width: '32px',
|
||||
height: '32px',
|
||||
left: 0,
|
||||
top: 0,
|
||||
right: 0,
|
||||
bottom: 0,
|
||||
margin: 'auto'
|
||||
})
|
||||
),
|
||||
content: Ox.LoadingScreen(),
|
||||
height: height,
|
||||
maximizeButton: true,
|
||||
minHeight: 256,
|
||||
|
|
|
@ -5,22 +5,6 @@ pandora.ui.helpDialog = function() {
|
|||
|
||||
var text = {},
|
||||
|
||||
$loading = Ox.Element()
|
||||
.append(
|
||||
$('<img>')
|
||||
.attr({src: Ox.UI.getImageURL('symbolLoadingAnimated')})
|
||||
.css({
|
||||
position: 'absolute',
|
||||
width: '32px',
|
||||
height: '32px',
|
||||
left: 0,
|
||||
top: 0,
|
||||
right: 0,
|
||||
bottom: 0,
|
||||
margin: 'auto'
|
||||
})
|
||||
),
|
||||
|
||||
$panel, $list, $text, $image,
|
||||
|
||||
that = Ox.Dialog({
|
||||
|
@ -44,7 +28,7 @@ pandora.ui.helpDialog = function() {
|
|||
})
|
||||
],
|
||||
closeButton: true,
|
||||
content: $loading,
|
||||
content: Ox.LoadingScreen(),
|
||||
height: 384,
|
||||
keys: {escape: 'close'},
|
||||
maximizeButton: true,
|
||||
|
|
|
@ -10,21 +10,6 @@ pandora.ui.idDialog = function(data) {
|
|||
dialogWidth = Math.round(window.innerWidth * 0.9),
|
||||
formWidth = getFormWidth(),
|
||||
|
||||
$loading = Ox.Element().append(
|
||||
$('<img>')
|
||||
.attr({src: Ox.UI.getImageURL('symbolLoadingAnimated')})
|
||||
.css({
|
||||
position: 'absolute',
|
||||
width: '32px',
|
||||
height: '32px',
|
||||
left: 0,
|
||||
top: 0,
|
||||
right: 0,
|
||||
bottom: 0,
|
||||
margin: 'auto'
|
||||
})
|
||||
),
|
||||
|
||||
$content,
|
||||
$input = [],
|
||||
$checkboxGroup,
|
||||
|
@ -62,7 +47,7 @@ pandora.ui.idDialog = function(data) {
|
|||
})
|
||||
],
|
||||
closeButton: true,
|
||||
content: $loading,
|
||||
content: Ox.LoadingScreen(),
|
||||
height: dialogHeight,
|
||||
maximizeButton: true,
|
||||
minHeight: 256,
|
||||
|
@ -121,7 +106,7 @@ pandora.ui.idDialog = function(data) {
|
|||
data[key] = key == 'director'
|
||||
? data_.value.split(', ')
|
||||
: data_.value;
|
||||
that.options({content: $loading});
|
||||
that.options({content: Ox.LoadingScreen()});
|
||||
getIds();
|
||||
}
|
||||
})
|
||||
|
@ -249,7 +234,7 @@ pandora.ui.idDialog = function(data) {
|
|||
}
|
||||
|
||||
function updateId() {
|
||||
that.options({content: $loading}).disableButtons();
|
||||
that.options({content: Ox.LoadingScreen()}).disableButtons();
|
||||
pandora.api.edit({
|
||||
id: data.id,
|
||||
imdbId: $checkboxGroup.options('value')
|
||||
|
|
|
@ -15,20 +15,6 @@ pandora.ui.metadataDialog = function(data) {
|
|||
formWidth = getFormWidth(),
|
||||
imdb,
|
||||
|
||||
$loading = Ox.Element().append(
|
||||
$('<img>')
|
||||
.attr({src: Ox.UI.getImageURL('symbolLoadingAnimated')})
|
||||
.css({
|
||||
position: 'absolute',
|
||||
width: '32px',
|
||||
height: '32px',
|
||||
left: 0,
|
||||
top: 0,
|
||||
right: 0,
|
||||
bottom: 0,
|
||||
margin: 'auto'
|
||||
})
|
||||
),
|
||||
$confirmDialog,
|
||||
$selectAllButton,
|
||||
$selectNoneButton,
|
||||
|
@ -107,7 +93,7 @@ pandora.ui.metadataDialog = function(data) {
|
|||
})
|
||||
],
|
||||
closeButton: true,
|
||||
content: $loading,
|
||||
content: Ox.LoadingScreen(),
|
||||
height: dialogHeight,
|
||||
maximizeButton: true,
|
||||
minHeight: 256,
|
||||
|
@ -354,7 +340,7 @@ pandora.ui.metadataDialog = function(data) {
|
|||
Ox.isArray(type) ? [] : ''
|
||||
);
|
||||
});
|
||||
that.options({content: $loading}).disableButtons();
|
||||
that.options({content: Ox.LoadingScreen()}).disableButtons();
|
||||
pandora.api.edit(edit, function(result) {
|
||||
that.close();
|
||||
pandora.updateItemContext();
|
||||
|
|
|
@ -63,20 +63,7 @@ pandora.ui.statisticsDialog = function() {
|
|||
})
|
||||
],
|
||||
closeButton: true,
|
||||
content: Ox.Element().append(
|
||||
$('<img>')
|
||||
.attr({src: Ox.UI.getImageURL('symbolLoadingAnimated')})
|
||||
.css({
|
||||
position: 'absolute',
|
||||
width: '32px',
|
||||
height: '32px',
|
||||
left: 0,
|
||||
top: 0,
|
||||
right: 0,
|
||||
bottom: 0,
|
||||
margin: 'auto'
|
||||
})
|
||||
),
|
||||
content: Ox.LoadingScreen(),
|
||||
height: dialogHeight,
|
||||
maximizeButton: true,
|
||||
minHeight: 256,
|
||||
|
|
Loading…
Reference in a new issue