summaryrefslogtreecommitdiff
path: root/modules/organize/views/organize_dialog.html.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2011-01-06 23:43:26 -0800
committerBharat Mediratta <bharat@menalto.com>2011-01-06 23:43:26 -0800
commit89597e7e703dddef8a2379f822772f9fd205d03b (patch)
tree2ff3e73e95d484b09be65a4f35edc09e9f8a5e9e /modules/organize/views/organize_dialog.html.php
parent24b8e9b060c77523cf557f7a8ffc94f72a7e0b42 (diff)
Add a spinner to the dialog when loading the iframe so that it's not
just a blank dialog. Create separate CSS for dialog vs. frame. Don't show the Loading message for the first load.
Diffstat (limited to 'modules/organize/views/organize_dialog.html.php')
-rw-r--r--modules/organize/views/organize_dialog.html.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/organize/views/organize_dialog.html.php b/modules/organize/views/organize_dialog.html.php
index 7bff576d..a386fa77 100644
--- a/modules/organize/views/organize_dialog.html.php
+++ b/modules/organize/views/organize_dialog.html.php
@@ -1,11 +1,5 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
-<style>
- #g-organize-frame {
- border: 0px;
- width: 100%;
- height: 100%;
- }
-</style>
+<link rel="stylesheet" type="text/css" href="<?= url::file("modules/organize/css/organize_dialog.css") ?>" />
<script type="text/javascript">
var ORGANIZE_TITLE =
<?= t("Organize :: %album_title", array("album_title" => "__TITLE__"))->for_js() ?>;
@@ -18,6 +12,12 @@
$("#g-dialog").dialog("option", "title", ORGANIZE_TITLE.replace("__TITLE__", title));
}
set_title("<?= $album->title ?>");
+
+ var done_loading = function() {
+ $("#g-organize-app-loading").hide();
+ }
</script>
+<div id="g-organize-app-loading">&nbsp;</div>
<iframe id="g-organize-frame" src="<?= url::site("organize/frame/{$album->id}") ?>">
</iframe>
+