diff --git a/static/js/apiDialog.js b/static/js/apiDialog.js index 07c54c74..ba49ba1e 100644 --- a/static/js/apiDialog.js +++ b/static/js/apiDialog.js @@ -30,7 +30,7 @@ pandora.ui.apiDialog = function() { }) ], closeButton: true, - content: Ox.LoadingScreen(), + content: Ox.LoadingScreen().start(), height: 384, keys: {escape: 'close'}, maximizeButton: true, diff --git a/static/js/eventsDialog.js b/static/js/eventsDialog.js index 2b11c144..466044a4 100644 --- a/static/js/eventsDialog.js +++ b/static/js/eventsDialog.js @@ -60,7 +60,7 @@ pandora.ui.eventsDialog = function(options) { }) ], closeButton: true, - content: Ox.LoadingScreen(), + content: Ox.LoadingScreen().start(), height: height, maximizeButton: true, minHeight: 256, diff --git a/static/js/helpDialog.js b/static/js/helpDialog.js index 32644f1b..d81b1206 100644 --- a/static/js/helpDialog.js +++ b/static/js/helpDialog.js @@ -28,7 +28,7 @@ pandora.ui.helpDialog = function() { }) ], closeButton: true, - content: Ox.LoadingScreen(), + content: Ox.LoadingScreen().start(), height: 384, keys: {escape: 'close'}, maximizeButton: true, diff --git a/static/js/idDialog.js b/static/js/idDialog.js index 975b7f48..cf9b630f 100644 --- a/static/js/idDialog.js +++ b/static/js/idDialog.js @@ -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') diff --git a/static/js/importAnnotations.js b/static/js/importAnnotations.js index 2cc1d059..7bd53f66 100644 --- a/static/js/importAnnotations.js +++ b/static/js/importAnnotations.js @@ -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])); diff --git a/static/js/metadataDialog.js b/static/js/metadataDialog.js index 18e9ec9b..34cce7b1 100644 --- a/static/js/metadataDialog.js +++ b/static/js/metadataDialog.js @@ -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(); diff --git a/static/js/printView.js b/static/js/printView.js index 4cd5fa62..f875c379 100644 --- a/static/js/printView.js +++ b/static/js/printView.js @@ -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) diff --git a/static/js/statisticsDialog.js b/static/js/statisticsDialog.js index 1518adb0..ec765507 100644 --- a/static/js/statisticsDialog.js +++ b/static/js/statisticsDialog.js @@ -66,7 +66,7 @@ pandora.ui.statisticsDialog = function() { }) ], closeButton: true, - content: Ox.LoadingScreen(), + content: Ox.LoadingScreen().start(), height: dialogHeight, maximizeButton: true, minHeight: 256,