start loading screens

This commit is contained in:
rolux 2013-11-20 09:12:59 +01:00
parent d74a264a6a
commit 778f935017
8 changed files with 11 additions and 11 deletions

View file

@ -30,7 +30,7 @@ pandora.ui.apiDialog = function() {
})
],
closeButton: true,
content: Ox.LoadingScreen(),
content: Ox.LoadingScreen().start(),
height: 384,
keys: {escape: 'close'},
maximizeButton: true,

View file

@ -60,7 +60,7 @@ pandora.ui.eventsDialog = function(options) {
})
],
closeButton: true,
content: Ox.LoadingScreen(),
content: Ox.LoadingScreen().start(),
height: height,
maximizeButton: true,
minHeight: 256,

View file

@ -28,7 +28,7 @@ pandora.ui.helpDialog = function() {
})
],
closeButton: true,
content: Ox.LoadingScreen(),
content: Ox.LoadingScreen().start(),
height: 384,
keys: {escape: 'close'},
maximizeButton: true,

View file

@ -47,7 +47,7 @@ pandora.ui.idDialog = function(data) {
})
],
closeButton: true,
content: Ox.LoadingScreen(),
content: Ox.LoadingScreen().start(),
height: dialogHeight,
maximizeButton: true,
minHeight: 256,
@ -106,7 +106,7 @@ pandora.ui.idDialog = function(data) {
data[key] = key == 'director'
? data_.value.split(', ')
: data_.value;
that.options({content: Ox.LoadingScreen()});
that.options({content: Ox.LoadingScreen().start()});
getIds();
}
})
@ -234,7 +234,7 @@ pandora.ui.idDialog = function(data) {
}
function updateId() {
that.options({content: Ox.LoadingScreen()}).disableButtons();
that.options({content: Ox.LoadingScreen().start()}).disableButtons();
pandora.api.edit({
id: data.id,
imdbId: $checkboxGroup.options('value')

View file

@ -81,7 +81,7 @@ pandora.ui.importAnnotations = function(data) {
if (result.data.taskId) {
$status.html('').append(Ox.LoadingScreen({
text: Ox._('Importing {0} annotations...', [srt.length])
}));
}).start());
pandora.wait(result.data.taskId, function(result) {
if (result.data.status == 'SUCCESS') {
setStatus(Ox._('{0} annotations imported.', [annotations.length]));

View file

@ -95,7 +95,7 @@ pandora.ui.metadataDialog = function(data) {
})
],
closeButton: true,
content: Ox.LoadingScreen(),
content: Ox.LoadingScreen().start(),
height: dialogHeight,
maximizeButton: true,
minHeight: 256,
@ -346,7 +346,7 @@ pandora.ui.metadataDialog = function(data) {
Ox.isArray(type) ? [] : ''
);
});
that.options({content: Ox.LoadingScreen()}).disableButtons();
that.options({content: Ox.LoadingScreen().start()}).disableButtons();
pandora.api.edit(edit, function(result) {
that.close();
pandora.updateItemContext();

View file

@ -5,7 +5,7 @@
pandora.ui.printView = function(data) {
var that = Ox.Element().css({padding: '64px 128px'}),
$loading = Ox.LoadingScreen().appendTo(that),
$loading = Ox.LoadingScreen().start().appendTo(that),
sortKey = pandora.user.ui.listSort[0].key,
keys = Ox.unique(
['director', 'id', 'summary', 'title', 'year'].concat(sortKey)

View file

@ -66,7 +66,7 @@ pandora.ui.statisticsDialog = function() {
})
],
closeButton: true,
content: Ox.LoadingScreen(),
content: Ox.LoadingScreen().start(),
height: dialogHeight,
maximizeButton: true,
minHeight: 256,