summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-06-09 22:18:41 +0800
committerTim Almdal <tnalmdal@shaw.ca>2009-06-09 22:22:57 +0800
commit3c3a65b5a76c2cb53fe143f2b89d767b36dcafa2 (patch)
tree28261763712ee8cff3a3d6d256b76920e48934a3 /themes
parent8189c1fc6b655907990c7f005936a4758ab7e315 (diff)
Rather than just displaying the "unformatted" login screen when the root album
is not viewable by a guest, display the root album as if it was empty. When the page finishes loading force the login dialog to be displayed. Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
Diffstat (limited to 'themes')
-rw-r--r--themes/default/views/page.html.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/themes/default/views/page.html.php b/themes/default/views/page.html.php
index 6c77fb72..a17b643d 100644
--- a/themes/default/views/page.html.php
+++ b/themes/default/views/page.html.php
@@ -52,6 +52,13 @@
<script src="<?= $theme->url("js/jquery.localscroll.js") ?>" type="text/javascript"></script>
<script src="<?= $theme->url("js/ui.init.js") ?>" type="text/javascript"></script>
<?= $theme->head() ?>
+ <? if (!empty($unauthorized)): ?>
+ <script type="text/javascript">
+ $(document).ready(function() {
+ $("#gLoginLink").click();
+ });
+ </script>
+ <? endif ?>
</head>
<body <?= $theme->main_element_attributes() ?>>