start loading screens
This commit is contained in:
parent
d74a264a6a
commit
778f935017
8 changed files with 11 additions and 11 deletions
|
@ -30,7 +30,7 @@ pandora.ui.apiDialog = function() {
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
closeButton: true,
|
closeButton: true,
|
||||||
content: Ox.LoadingScreen(),
|
content: Ox.LoadingScreen().start(),
|
||||||
height: 384,
|
height: 384,
|
||||||
keys: {escape: 'close'},
|
keys: {escape: 'close'},
|
||||||
maximizeButton: true,
|
maximizeButton: true,
|
||||||
|
|
|
@ -60,7 +60,7 @@ pandora.ui.eventsDialog = function(options) {
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
closeButton: true,
|
closeButton: true,
|
||||||
content: Ox.LoadingScreen(),
|
content: Ox.LoadingScreen().start(),
|
||||||
height: height,
|
height: height,
|
||||||
maximizeButton: true,
|
maximizeButton: true,
|
||||||
minHeight: 256,
|
minHeight: 256,
|
||||||
|
|
|
@ -28,7 +28,7 @@ pandora.ui.helpDialog = function() {
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
closeButton: true,
|
closeButton: true,
|
||||||
content: Ox.LoadingScreen(),
|
content: Ox.LoadingScreen().start(),
|
||||||
height: 384,
|
height: 384,
|
||||||
keys: {escape: 'close'},
|
keys: {escape: 'close'},
|
||||||
maximizeButton: true,
|
maximizeButton: true,
|
||||||
|
|
|
@ -47,7 +47,7 @@ pandora.ui.idDialog = function(data) {
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
closeButton: true,
|
closeButton: true,
|
||||||
content: Ox.LoadingScreen(),
|
content: Ox.LoadingScreen().start(),
|
||||||
height: dialogHeight,
|
height: dialogHeight,
|
||||||
maximizeButton: true,
|
maximizeButton: true,
|
||||||
minHeight: 256,
|
minHeight: 256,
|
||||||
|
@ -106,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: Ox.LoadingScreen()});
|
that.options({content: Ox.LoadingScreen().start()});
|
||||||
getIds();
|
getIds();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -234,7 +234,7 @@ pandora.ui.idDialog = function(data) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateId() {
|
function updateId() {
|
||||||
that.options({content: Ox.LoadingScreen()}).disableButtons();
|
that.options({content: Ox.LoadingScreen().start()}).disableButtons();
|
||||||
pandora.api.edit({
|
pandora.api.edit({
|
||||||
id: data.id,
|
id: data.id,
|
||||||
imdbId: $checkboxGroup.options('value')
|
imdbId: $checkboxGroup.options('value')
|
||||||
|
|
|
@ -81,7 +81,7 @@ pandora.ui.importAnnotations = function(data) {
|
||||||
if (result.data.taskId) {
|
if (result.data.taskId) {
|
||||||
$status.html('').append(Ox.LoadingScreen({
|
$status.html('').append(Ox.LoadingScreen({
|
||||||
text: Ox._('Importing {0} annotations...', [srt.length])
|
text: Ox._('Importing {0} annotations...', [srt.length])
|
||||||
}));
|
}).start());
|
||||||
pandora.wait(result.data.taskId, function(result) {
|
pandora.wait(result.data.taskId, function(result) {
|
||||||
if (result.data.status == 'SUCCESS') {
|
if (result.data.status == 'SUCCESS') {
|
||||||
setStatus(Ox._('{0} annotations imported.', [annotations.length]));
|
setStatus(Ox._('{0} annotations imported.', [annotations.length]));
|
||||||
|
|
|
@ -95,7 +95,7 @@ pandora.ui.metadataDialog = function(data) {
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
closeButton: true,
|
closeButton: true,
|
||||||
content: Ox.LoadingScreen(),
|
content: Ox.LoadingScreen().start(),
|
||||||
height: dialogHeight,
|
height: dialogHeight,
|
||||||
maximizeButton: true,
|
maximizeButton: true,
|
||||||
minHeight: 256,
|
minHeight: 256,
|
||||||
|
@ -346,7 +346,7 @@ pandora.ui.metadataDialog = function(data) {
|
||||||
Ox.isArray(type) ? [] : ''
|
Ox.isArray(type) ? [] : ''
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
that.options({content: Ox.LoadingScreen()}).disableButtons();
|
that.options({content: Ox.LoadingScreen().start()}).disableButtons();
|
||||||
pandora.api.edit(edit, function(result) {
|
pandora.api.edit(edit, function(result) {
|
||||||
that.close();
|
that.close();
|
||||||
pandora.updateItemContext();
|
pandora.updateItemContext();
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
pandora.ui.printView = function(data) {
|
pandora.ui.printView = function(data) {
|
||||||
|
|
||||||
var that = Ox.Element().css({padding: '64px 128px'}),
|
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,
|
sortKey = pandora.user.ui.listSort[0].key,
|
||||||
keys = Ox.unique(
|
keys = Ox.unique(
|
||||||
['director', 'id', 'summary', 'title', 'year'].concat(sortKey)
|
['director', 'id', 'summary', 'title', 'year'].concat(sortKey)
|
||||||
|
|
|
@ -66,7 +66,7 @@ pandora.ui.statisticsDialog = function() {
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
closeButton: true,
|
closeButton: true,
|
||||||
content: Ox.LoadingScreen(),
|
content: Ox.LoadingScreen().start(),
|
||||||
height: dialogHeight,
|
height: dialogHeight,
|
||||||
maximizeButton: true,
|
maximizeButton: true,
|
||||||
minHeight: 256,
|
minHeight: 256,
|
||||||
|
|
Loading…
Reference in a new issue