use Ox.LoadingScreen

This commit is contained in:
rolux 2013-03-08 08:51:35 +00:00
parent 0ef9742d0e
commit 8c8ae16019
6 changed files with 9 additions and 95 deletions

View file

@ -6,21 +6,6 @@ pandora.ui.apiDialog = function() {
var selected = pandora.user.ui.hash && pandora.user.ui.hash.anchor var selected = pandora.user.ui.hash && pandora.user.ui.hash.anchor
? pandora.user.ui.hash.anchor : '', ? pandora.user.ui.hash.anchor : '',
actions, 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, $panel, $list, $text,
@ -45,7 +30,7 @@ pandora.ui.apiDialog = function() {
}) })
], ],
closeButton: true, closeButton: true,
content: $loading, content: Ox.LoadingScreen(),
height: 384, height: 384,
keys: {escape: 'close'}, keys: {escape: 'close'},
maximizeButton: true, maximizeButton: true,

View file

@ -31,20 +31,7 @@ pandora.ui.eventsDialog = function(options) {
}) })
], ],
closeButton: true, closeButton: true,
content: Ox.Element().append( content: Ox.LoadingScreen(),
$('<img>')
.attr({src: Ox.UI.getImageURL('symbolLoadingAnimated')})
.css({
position: 'absolute',
width: '32px',
height: '32px',
left: 0,
top: 0,
right: 0,
bottom: 0,
margin: 'auto'
})
),
height: height, height: height,
maximizeButton: true, maximizeButton: true,
minHeight: 256, minHeight: 256,

View file

@ -5,22 +5,6 @@ pandora.ui.helpDialog = function() {
var text = {}, 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, $panel, $list, $text, $image,
that = Ox.Dialog({ that = Ox.Dialog({
@ -44,7 +28,7 @@ pandora.ui.helpDialog = function() {
}) })
], ],
closeButton: true, closeButton: true,
content: $loading, content: Ox.LoadingScreen(),
height: 384, height: 384,
keys: {escape: 'close'}, keys: {escape: 'close'},
maximizeButton: true, maximizeButton: true,

View file

@ -10,21 +10,6 @@ pandora.ui.idDialog = function(data) {
dialogWidth = Math.round(window.innerWidth * 0.9), dialogWidth = Math.round(window.innerWidth * 0.9),
formWidth = getFormWidth(), 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, $content,
$input = [], $input = [],
$checkboxGroup, $checkboxGroup,
@ -62,7 +47,7 @@ pandora.ui.idDialog = function(data) {
}) })
], ],
closeButton: true, closeButton: true,
content: $loading, content: Ox.LoadingScreen(),
height: dialogHeight, height: dialogHeight,
maximizeButton: true, maximizeButton: true,
minHeight: 256, minHeight: 256,
@ -121,7 +106,7 @@ pandora.ui.idDialog = function(data) {
data[key] = key == 'director' data[key] = key == 'director'
? data_.value.split(', ') ? data_.value.split(', ')
: data_.value; : data_.value;
that.options({content: $loading}); that.options({content: Ox.LoadingScreen()});
getIds(); getIds();
} }
}) })
@ -249,7 +234,7 @@ pandora.ui.idDialog = function(data) {
} }
function updateId() { function updateId() {
that.options({content: $loading}).disableButtons(); that.options({content: Ox.LoadingScreen()}).disableButtons();
pandora.api.edit({ pandora.api.edit({
id: data.id, id: data.id,
imdbId: $checkboxGroup.options('value') imdbId: $checkboxGroup.options('value')

View file

@ -15,20 +15,6 @@ pandora.ui.metadataDialog = function(data) {
formWidth = getFormWidth(), formWidth = getFormWidth(),
imdb, 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, $confirmDialog,
$selectAllButton, $selectAllButton,
$selectNoneButton, $selectNoneButton,
@ -107,7 +93,7 @@ pandora.ui.metadataDialog = function(data) {
}) })
], ],
closeButton: true, closeButton: true,
content: $loading, content: Ox.LoadingScreen(),
height: dialogHeight, height: dialogHeight,
maximizeButton: true, maximizeButton: true,
minHeight: 256, minHeight: 256,
@ -354,7 +340,7 @@ pandora.ui.metadataDialog = function(data) {
Ox.isArray(type) ? [] : '' Ox.isArray(type) ? [] : ''
); );
}); });
that.options({content: $loading}).disableButtons(); that.options({content: Ox.LoadingScreen()}).disableButtons();
pandora.api.edit(edit, function(result) { pandora.api.edit(edit, function(result) {
that.close(); that.close();
pandora.updateItemContext(); pandora.updateItemContext();

View file

@ -63,20 +63,7 @@ pandora.ui.statisticsDialog = function() {
}) })
], ],
closeButton: true, closeButton: true,
content: Ox.Element().append( content: Ox.LoadingScreen(),
$('<img>')
.attr({src: Ox.UI.getImageURL('symbolLoadingAnimated')})
.css({
position: 'absolute',
width: '32px',
height: '32px',
left: 0,
top: 0,
right: 0,
bottom: 0,
margin: 'auto'
})
),
height: dialogHeight, height: dialogHeight,
maximizeButton: true, maximizeButton: true,
minHeight: 256, minHeight: 256,